I have a regex issue that I need help with. Its trying to validate an Email address.
Regex rx = new Regex(@"^[A-Za-z0-9]([_\.\-]?[A-Za-z0-9]+)*\@[A-Za-z0-9]([_\.\-]?[A-Za-z0-9]+)*\.[A-Za-z0-9]([_\.\-]?[A-Za-z0-9]+)*$|^$");
rx.IsMatch("john.gilbert.stu.seattle.washington.us");
The IsMatch method never returns for that particular string. It goes into some infinite loop. Can anybody see what the problem is with the pattern.
Thanks!