in reply to Re: IP Filtering RegEx needed
in thread IP Filtering RegEx needed

Nice, although...

A match of +135. 168 . 10e+1 .102 in range 135.168.[10-115].[0-125]

 

Replies are listed 'Best First'.
Re^3: IP Filtering RegEx needed
by Random_Walk (Prior) on Sep 15, 2004 at 16:20 UTC

    Did you cut and paste the entire lot ? Either chop of __END__ onwards or add last if /END/; in the second while loop, say just before the chomp though I don't think this is your problem, error would be different.

    Else did you find some values of IP address or ranges that gave this result, the posted code runs fine for me but I am on perl 5.005_3 so perhaps something in a more modern perl makes it barf, if so I'd love to see ?

    Cheers,
    R.

      Yes, the test value that gives this result is, literally

      +135. 168 .  10e+1   .102

      including spaces and symbols.

      Nitpicking really, but could be important to the OP.