Skip to content
Advertisement

How match email address with regex expression?

the match to find email has wrong regex expression, leading to missing emails that should have been otherwise populated in the output.

Below is the query

The above regex expression doesn’t match emails like BILL@AMERITRUST-MORTGAGE.COM Instead it returns null when such emails are encountered.

Advertisement

Answer

I used this statement and it worked:

The minus character must be the last one in the […].

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement