I have a regex for e-mail validation which is constructed as following:
const emailRegexp = /[a-z0-9._%+]+@[a-z0-9]+(\.[a-z]{2,10}){1,2}$/;
Examples:
aaa@aaa-aaa.com - for this e-mail, validation works and it blocks the users from submiting the form aa-aa@aaa.com - for this e-mail, validation doesn't work.
How to disallow all hyphens in this particular "emailRegexp" variable?