WC -Sx- Jones wrote:
PCRE 4.5 revisited :(
I am trying to reduce this into something "smaller/shorter" -
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]))))\.\d{1,3}/
Sorry - I don't mean to be vague. I normally would use a CIDR to match:
# 213.37.150.0 - 213.37.251.255
If I understand, you want to match IP addresses in the above range?
untested:
/ 213\. 37\. (?:1[5-9][0-9]|2(?:[1-4][0-9]|5[0-1]))\. \d{1,3} /x
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>