Keep It Simple, Stupid | |
PerlMonks |
Re: IP Filtering RegEx neededby Roger (Parson) |
on Sep 15, 2004 at 14:22 UTC ( [id://391182]=note: print w/replies, xml ) | Need Help?? |
You need to quote the meta characters in the regex with \Q and \E. Otherwise you need to escape the meta-characters (such as [ and .) with backslash (\). Here's an example:
Update: Sorry I misread the question. If you are after a single regex to do range checking, you can use the match time interpolation technique.
In Section
Seekers of Perl Wisdom
|
|