Indeed, you regular expression does not match valid e-mail addresses, but I don't know how you could get any error on '@'. Regular expression syntax is not broken, you should have just get failures to match, not any errors. This problem of composing proper regular expression to validate e-mail is fairly simple. Many subtle moments of it are discussed here, with different variants of the solution:
http://www.regular-expressions.info/email.html[
^].
—SA