|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Match a Range of IP'sby lhoward (Vicar) |
| on Sep 30, 2004 at 18:22 UTC ( #395442=note: print w/ replies, xml ) | Need Help?? |
|
IMHO, the right way to do this is to convert all the IPs to integers and compare those. Comparing with a RE will work for most common ones, but trying to determine if 144.7.14.2 is betwen 9.0.1.244 and 199.121.5.19 is not well suited for a regular expression.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||