Possible Duplicate:
What is the best regular expression for validating email addresses?
I have the following expression
**replacePattern3 = /(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;
replacedText = replacedText.replace(replacePattern3, '<a href="mailto:$1">$1</a>');**
but it doesn't validate email if the email in this form a.b@alexmed.com it only validate email in form a@alexmed.com
i need another expression to validate the form a.b@alexmed.com