in reply to Re: Re: Match all emails from all subdomains for a domain except one..
in thread Match all emails from all subdomains for a domain except one..

...it also needs to fail on anything that isn't example.com

Then just move the parens a little bit, and make the specific subdomain optional...

/@(?!bar\.)?example\.com$/

Update: Oh well, that's why it's called "free advice"

  • Comment on Re: Re: Re: Match all emails from all subdomains for a domain except one..
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: Match all emails from all subdomains for a domain except one..
by bobn (Chaplain) on Aug 09, 2003 at 00:42 UTC

    Testing would be good. Your change causes jones@foo.example.com, jones@bbar.example.com and jones@baz.example.com to fail.

    --Bob Niederman, http://bob-n.com