procmail
[Top] [All Lists]

proper optional subdomain testing

2001-03-18 14:35:25

I want to test for a specific, but optional, subdomain, such as

nobody(_at_)home(_dot_)com
nobody(_at_)my(_dot_)home(_dot_)com

is this the correct format?

* ^From:.*nobody@(my\.)?home\.com

and it seems self-evidently true that it will *not* match, for 
example "myhome.com" or "yourhome.com" or "anyotherhome.com" because it 
follows the @ sign immediately.

I just want to make sure I have the parenthesis and ? in the correct 
syntactical locations.

tia
TjL


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