Regex to validate the Email
Here i am sharing a regex to validate the Email.
This is an standard version of regex.
^([a-zA-Z0-9\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+)(?:\.[A-Za-z0-9\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+)*@([a-zA-Z0-9]([\-]?[a-zA-Z0-9]+)*\.)+([a-zA-Z0-9]{0,6})\$
It can validate email like
Valid Emails
arungupta@gmail.com arun+gupta+ramjiki+@gmail.com a.little.lengthy.but.fine@dept.example.com disposable.style.email.with+symbol@example.com other.email-with-dash@example.com arun@daiict.ac.in arun_gupta@gmail.com
Invalid Emails
me@ @example.com me.@example.com .me@example.com me@example..com me.example@com me\@example.com