Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 ValidationExpression for email

Author  Topic 

maxim
Yak Posting Veteran

51 Posts

Posted - 2006-11-29 : 08:15:10
Hello

I have a text box validator with this code for email text field:

ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil|tv|biz|info|pt)$">


but that expression don't allow this:

"name.name@mmmm.com" or "name@aaa.bbb.com"

What can I add in this expression to solve my problem?

Thanks,
Max

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-11-29 : 08:41:33
http://www.google.com/search?q=email+regular+expression



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -