procmail
[Top] [All Lists]

Re: matching single sequence of some characters

2002-08-20 07:04:45
parv skribis:
Ruud H.G. van Tol:
parv:

REPLY = "(aw|re|fwd)[ \t]*\[?[0-9]?\]?*[ \t]*:([ \t]*\[[0-9]+\])?"

There is a funny '?*' in there (b4 the optional whitespace b4 the
colon).

eek ... thanks ruud; that would have remained a mystery to me
forever otherwise.

Well, I haven't figured out what it would actually differ, 
but it giggled for attention.

You anticipate subjects such as 
  Re:
and
  Re[1]:
but also
  Re [1] :
and even
  Re [] :
or
  Re        ]       :

But not
  Re[42]:

-- 
Affijn, Ruud

_______________________________________________
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>