procmail
[Top] [All Lists]

fun with regex (or: why is it so?)

2002-08-07 19:12:21
I have the following line in a piece of spam:

To opt out:                                                                     

And the following regexp with which to match it:

* 3^0 \<opt[-_ ]?out:?\>

And yet... never the twain do meet. :/

Why is it so? As near as i can tell the following should happen:

\< would match the space before the opt
opt would match opt
[-_ ]? would match the space between opt and out
out would match out
:? would match the colon
\> should match the eol

Also, \< should not be analogous to < and as such start counting the
length of the email...

Right?

:/

This is procmail version 3.22 btw.

-- 
| You wake up. The room is spinning very gently | >i
| round your head. Or at least it would be if   | You have:
| you could see it which you can't.             |   a splitting headache
|                                               |   no tea
| It is pitch black                             |
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>