I think below regex matches everything up to @ sign.

/(bounce.*@)/i

it does NOT check anything after @ sign. This is WHAT I NEED

something like these. 

nore...@bounce.domain.com
nore...@bounce.com


Be exceptionally careful of ".*" [It very, *very* often matches more things 
than you expected it to.]

I can't think of a specific example of a line that would cause an issue, but 
your regex, will match something like this too. [Essentially anything with 
"bounce" with anything in-between, followed by an "@" later in the same line.

blah blah blah ji...@bounce.com fre...@someotherdomain.com blah blah blah @ 
blah [In this case, it will match on the second "@", not the first - as an 
example of how .* works.]

or

blah blah blah ji...@somedomain.com freddy-bou...@someotherdomain.com blah blah 
blah

or

blah blah blah ji...@somedomain.com fre...@someotherdomain.com bounce blah blah 
blah @ blah

Any new regex, I'd monitor it carefully for some time to be sure it does what 
you expected it to do, especially if it has a .* in it.

-Greg

Reply via email to