procmail
[Top] [All Lists]

Re: regex syntax question

2004-03-01 11:42:50
On Mon, 1 Mar 2004, Curtis Maurand wrote:

If I've understood the docs correctly, I should be able to catch this 
with: erx[0-9]{1,5}rx\.com

No.  Procmail does not understand {1,5}.  If you absolutely must limit it
to 1 through 5 occurrences, you either need to write out
  erx[0-9](erx[0-9]|(erx[0-9]|(erx[0-9]|(erx[0-9]|))))
or use something like

:0 B:
* ()\/(erx[0-9])+rx.com
*  6^0
* -1^1 MATCH ?? erx[0-9]
junkmail


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