in reply to preventing malicious mail attacks

If you are interested to check whether the email address is valid according to RFC822, you can use this regex.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law