I have this current regex expression to validate emails:
^([0-9a-zA-Z]([-.\\w\\+]*[0-9a-zA-Z\\+])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$
I want this to include "_" and "." to validate emails like these:
These are the valid emails that should pass/im validating:
[email protected]
I've tried adding [0-9a-zA-Z_]
an underline here but doesn't seem to work