Brock Rozen <brozen(_at_)webdreams(_dot_)com> writes:
...
To be very specific I'm looking for a regular expression that specifies
webmaster@"anything in here"webdreams.com -- with the "Anything in here"
being optional.
How about:
* ^TO_webmaster@([-a-z0-9]+\.)*webdreams\.com([ ]*,|$)
"Match any destination header that contains, in a position that looks
like the beginning of an address, `webmaster@' followed by a (possibly
improper) subdomain of webdreams.com."
I use "possibly improper" in the mathematical sense of including the
domain by itself. Also note that "Match any...of and address," is
effectively what the ^TO_ token 'means'. As usual, that's a space and
a tab in the brackets.
Philip Guenther