Regular Expressions

Options
Hi.

I have this expression that I use to test for invalid email addresses.

/^[A-Za-z0-9.-_]+@([A-Za-z0-9.-]+\.)[A-Za-z0-9-]+$/

It works fine except for a case where it matches abc@abc@abc.com, where there are 2 @s

I have tested this regular expression on https://regex101.com/ and it works as expected. ie not matching abc@abc@abc.com.

Anyone can shed some light on this?