|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: "Potted" regexquestion
From: Tony Earnshaw (tonye
billy.demon.nl)
Date: Sun Apr 18 2004 - 12:29:39 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
lør, 17.04.2004 kl. 16.13 skrev WC -Sx- Jones:
> > The spam comes (jwhois) from Madritel ES 213.37.150.0 - 213.37.251.255.
> > So I make a fine pcre regexp for Madritel:
> >
> > /(?:^Received:\s{1,2}from\s+.+213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]))))\.\d{1,3})/
>
> I have never seen such a site - however - wouldn't you be more
> interested in mostly the section within the [] ?
No :)
> At least you have the main logic worked out :)
That's because I wanted to prove to myself that I'm not basically stupid
and can sometimes fathom out things for myself. There are times when I
wonder, namely ... In this case, Jim Seymour's UCE stuff gave me
something to work against. Only the above solution is better than his ;)
--Tonni
--
Kattekots op de vloer
na de moeë thuiskomst,
weinig walg verwekt.
Getrouw als kind
de kat heet welkom,
wellicht nog knabbels krijgt.
mail: billy - at - billy.demon.nl
http://www.billy.demon.nl
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]