procmail
[Top] [All Lists]

Re: regex syntax question

2004-03-01 11:42:50
At 12:37 2004-03-01 -0500, Curtis Maurand wrote:

given the following domain name: erx54843rx.com

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

What docs? Procmail doesn't use the (n,m) count syntax, so you're not picking that one from procmail docs.

Of you want to match THAT domain, just match THAT domain as a literal (with the dot escaped, as you already did). If you're implying (as per the regexp) that the domain always starts with erx has some number (1-5) of random digits, and then rx.com, then the follwoing would do it:

:0:
* B ?? erx[0-9][0-9]?[0-9]?[0-9]?[0-9]?rx\.com
junkmail

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


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