Email validation using Regular Expression

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H
i need to validate a textBox.text containing a email address
the enterd email address text into the textbox needs to be validated for correct forma
example : (e-mail address removed)
how to validate whether a string or text enterd into a textBox is a valid email format r not

-----------need hel
-------seash
 
seash said:
Hi
i need to validate a textBox.text containing a email address.
the enterd email address text into the textbox needs to be validated
for correct format example : (e-mail address removed)
how to validate whether a string or text enterd into a textBox
is a valid email format r not?

The ASP.NET RegEx validator has some predefined validations. For internet
e-mail it has the following regex:

\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
Back
Top