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 213.37.150.0/23 REJECT Banned here because I dont like you 213.37.152.0/21 REJECT Banned here because I dont like you 213.37.160.0/19 REJECT Banned here because I dont like you 213.37.192.0/19 REJECT Banned here because I dont like you 213.37.224.0/20 REJECT Banned here because I dont like you 213.37.240.0/21 REJECT Banned here because I dont like you 213.37.248.0/22 REJECT Banned here because I dont like you
But in this instance I must use a one line PCRE to match any of those within the []'s - for example in:
Received: from mail.insecurity.org ([68.154.226.98])
Thx/Bill
-- _Sx_ http://youve-reached-the.endoftheinternet.org/ _____ http://jaxpm.insecurity.org/ http://cis4dl.insecurity.org/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>