in reply to RE: Matching an IP address
in thread Matching an IP address

Why exclude 0.0.0.0?

Replies are listed 'Best First'.
RE: RE: RE: Matching an IP address
by young perlhopper (Scribe) on Aug 02, 2000 at 01:00 UTC
    I didn't explicitly say that you should... i was just pointing out that his regex looks like it would allow:

    023.45.34.2
    000.34.23.2
    etc, etc...

    Thanks for pointing that out though, i wasn't terribly clear... -Mark mlogan@ccs.neu.edu

      This is a good point, and I believe some stacks even treat octets with a leading zero as octal versions of the IP address (!), in which case none of the solutions I've seen presented on this topic would be adequate.