[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail filter to catch ????????????????????

On 19 Feb 2002, martin f krafft wrote:
> also sprach Anthony Campbell <ac@acampbell.org.uk> [2002.02.19.1453 +0100]:
> > :0:
> > * ^Subject:.*[\0-9\][\0-9\][\0-9\][\0-9\][\0-9\]
> > junkfile
> > 
> > From my reading of the regexp docs I thught this should catch all long
> > number sequences enclosed in \, but I don't think it's right.
> \123 is not a number sequence per se, it's an octal number, and it
> occupies only 1-2 bytes, not four as its ascii representation.
> regardless, the above would be:
> * ^Subject:.*(\[0-9]{3})+
> which would match a sequence of one or more \123.

I see - thank you.

Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For electronic books on the Assassins and on homeopathy, skeptical 
essays, and over 150 book reviews, go to: http://www.acampbell.org.uk/

Our planet is a lonely speck in the great enveloping cosmic dark. In our
obscurity, in all this vastness, there is no hint that help will come
from elsewhere to save us from ourselves. [Carl Sagan]

Reply to: