-4

Possible Duplicate:
What is the best regular expression for validating email addresses?

I want email validator with specific domains where for example:

[email protected] invalid
[email protected]  valid
[email protected]  valid
[email protected]   invalid
[email protected]   invalid

So If i specify "asdf" in my regex expression then it can also be validated.

Community
  • 1
  • 1
k-s
  • 2,192
  • 11
  • 39
  • 73

1 Answers1

0

Try below one

\w+@\w+(\.[a-z]{1,3})+$

Below is the change as requested.

\w+@\w+.(biz|com|au)$
Pankaj
  • 9,749
  • 32
  • 139
  • 283