[PLUG] regex help requested

Galen Seitz galens at seitzassoc.com
Tue Nov 19 20:56:54 UTC 2002


> On Tue, 19 Nov 2002, Colin Kuskie wrote:
> 
> > If you anchor the end, /@mail\.com$/ then it should do the right
> > thing.
>  
> Colin,
> 
>   I pondered this, but realized that there may well be a closing parenthesis
> after the address, or some other symbol. That's why I didn't use the end of
> line metacharacter.
> 

It sounds like you need something like /@mail\.com\([^a-zA-Z0-9.-]\|$\)/

I'm not familiar with the regex's used in postfix, so I don't know
whether this will actually work.  The intent is to match mail.com either
when it is followed by either a character which is not valid in a domain name
or end of line.

galen







More information about the PLUG mailing list