On 4/17/2004 11:10 AM, 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}/



Obviously I am brain dead =/ I have tried -


/213\.37\.[150-251]\.[0-255]/    or
/213\.37\.(?:[150-251])\.(?:[0-255])/  or
/213\.37\.(?:150...251)\.(?:0...255)/

But while they are syntactically correct (no error is generated using PCRE 4.5) -- none work :(


err, what are you trying to match? Some subset of IP addresses?


Randy.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to