I'm iterating through a list of IP's and trying to match them against the above format.123.145.[146-149].2 or 135.168.[10-115].[0-125] or some combination of the two
Any suggestions? Can I use the format to build my regex (i.e.):
my $RegEx = qw/123.145.[146-149].2/; print "$IP\n" if ($IP =~ /$RegEx/);
In reply to IP Filtering RegEx needed by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |