Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Don't Use Regular Expressions To Parse IP Addresses!

by Anonymous Monk
on Oct 27, 2008 at 03:43 UTC ( #719699=note: print w/replies, xml ) Need Help??

in reply to Don't Use Regular Expressions To Parse IP Addresses!

Something seems to be off on the example of dotted quad representation to binary. If you start with the example of you should stick to it. This has the binary representation of 1010 1100 0001 1111 1111 1110 0000 0001 or 2887777793 in radix 10 (unlike 2887726590 as was stated earlier, which in fact corresponds to, which is also what the example continues to assume the ip was, for some reason).
  • Comment on Re: Don't Use Regular Expressions To Parse IP Addresses!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://719699]
[Your Mother]: Wait… maybe I did see one last year…
[Your Mother]: I saw what I thought was a Cuban trogon but they are too impossibly rare / never seen in the US. That guy might have been what I actually saw.
[LanX]: Good Night guys!
[LanX]: :)
[erix]: ciao LanX
[Your Mother]: “A main wintering area is southern peninsular Florida, from the Florida Keys”

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-01-20 01:38 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.