We have an application where we are using the following RegEx
to validate email.
private string _regularExpression = @"^(("".+?"")|([0-9a-zA-Z](((\.(?!\.))|([-!#\$%&'\*\+/=\?\^`\{\}\|~\w]))*[0-9a-zA-Z])*))@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9}$";
Regex _reg = new Regex(_regularExpression);
However we have a incorrect email in source:
abcd1090ihavenoidea.what.going.wrong.here
for which the program hangs. We are still unable finding out which part we are doing wrong here?