Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Match a Range of IP's

by bpphillips (Friar)
on Sep 30, 2004 at 16:13 UTC ( #395389=note: print w/replies, xml ) Need Help??


in reply to Match a Range of IP's

your [1-99] really means match only one character [1-9] (you can't do ranges on two-digit numbers). You need this:
while (<DATA>){ print "$_\n" if m/^192\.168\.[1-9][0-9]?\.\d+$/; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2021-01-17 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?