The better answer is that using a regular expression for matching email addresses is a bad idea. For one, all valid addresses are not active. hd1@jsc.d8u.us is me, hd2@jsc.d8u.us is a valid email address by every RFC in existence, but it's not an active email account.
If you want to do email address validation, you could do worse than to set up a web service that does nothing more than take a string, use JavaMail's address parsing (InternetAddress.parse()), which throws an exception if the parse fails and returns the address if it succeeds. Sample code below:
public class ValidationServlet extends HttpServlet {
protected void doHead(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String candid8Address = request.getParameter("email");
try {
InternetAddress.parse(candid8Address);
response.setStatus(HttpServletResponse.SC_OK);
} catch (AddressException e) {
response.setStatus(HttpServletResponse.SC_NOT_FORBIDDEN);
}
}
}
Let me know if you need further assistance...