in reply to Match all emails from all subdomains for a domain except one..
Results:@addresses = <DATA>; chomp @addresses; for ( @addresses ) { if ( /@(?!bar.example.com$)/ ) { # Fill in really cool regexp here print "$_ : match\n"; } else { print "$_ : fail\n"; } } __END__ smith@example.com jones@example.com jones@foo.example.com jones@bar.example.com jones@bar.example.com.com jones@baz.example.com
--Bob Niederman, http://bob-n.comsmith@example.com : match jones@example.com : match jones@foo.example.com : match jones@bar.example.com : fail jones@bar.example.com.com : match jones@baz.example.com : match
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Match all emails from all subdomains for a domain except one..
by ehdonhon (Curate) on Aug 09, 2003 at 00:13 UTC | |
by bobn (Chaplain) on Aug 09, 2003 at 00:26 UTC | |
by hossman (Prior) on Aug 09, 2003 at 00:26 UTC | |
by bobn (Chaplain) on Aug 09, 2003 at 00:42 UTC |