Validating an email address in a regexp is somewhat impractical.
The problem is that emails are far more lenient than you might think.
However, if you're willing to ignore the standard and go with what
most people consider a valid email address...
try something like:
theEmailAddress.matches("^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]
{2,}$");
I've read the almost complete one at one point or other, and it was
half a screen long. I can't find it, unfortunately.
Personally, I'd check for an @, a . in the server name, no whitespace,
and other than that, accept it.