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 :(
I think your problem is things like [150-251] That accepts any ONE character, of the range 1 or 5 or between 0 and 2 or 5 or 1. As you can see, that's not too helpful.
The problem above looks to be mainly the excessive (?:...) constructs, which don't even seem to be doing much.
Any chance you could tell us what it's supposed to match, to save me the trouble of puzzling it out?
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>