Just for fun here's a regex that is RFC 882 compliant:
It's take from: http://svn.sourceforge.net/viewvc/wicket/trunk/wicket-extensions/src/java/wicket/validation/validator/RfcCompliantEmailAddressPatternValidator.java?view=markup
As the javadoc says, you really should use this, but it's interesting to look at... it's almost like one of those blurry pictures that stare at until you see the hidden image.
It's take from: http://svn.sourceforge.net/viewvc/wicket/trunk/wicket-extensions/src/java/wicket/validation/validator/RfcCompliantEmailAddressPatternValidator.java?view=markup
As the javadoc says, you really should use this, but it's interesting to look at... it's almost like one of those blurry pictures that stare at until you see the hidden image.
This throws an exception if the address is invalid
But this way is good for a "quick n dirty" test