I'm not very good with regular expressions, so I decided to seek some help.
Here's the regular expression I have:
/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;
It works for most cases of email validation, but it allows an undesired format through:
How can I modify the above Regular Expression to prevent consecutive periods anywhere in the string?
Thank you.