I have a regex for email validation in my javascript file as below
^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$
Its working for everything except the below condition
test.regex@gmail.com1 - Not getting validated since i put 1 after .com .
Please help to resolve this validation using the above regex as i dont want to go for some new regex .I want to know the exact error in the above question which will help to track this kind of validation errors in future.
I am quite new in javascript/jquery . Please help me to resolve the above issue .