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. 

[email protected]
[email protected]


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 [email protected] [email protected] 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 [email protected] [email protected] blah blah 
blah

or

blah blah blah [email protected] [email protected] 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