Possible Duplicate:
What is the best regular expression for validating email addresses?
I have a regular expression that validates email addresses:
/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/
It fails on these types though:
a.whatever@whatever.com
When the .
before the @
is preceded by a single character the validation fails. I'm new to regular expressions, can someone help me allow those types of email addresses?