Subscribe to Subscribers

Forums » .NET » ASP.NET »

\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*


Posted Date: 28 Sep 2007      Posted By:: avinash     Member Level: Silver    Member Rank: 0     Points: 2   Responses: 1



this is validation for email id: \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

can you please explain, how it works????

and dis is validation for postal pin code:: \d{3}(-(\d{4}|\d{2}))?

can you please explain how it woks????

i m eager to know!!




Responses

#154855    Author: Suja      Member Level: Silver      Member Rank: 0     Date: 29/Sep/2007   Rating: 2 out of 52 out of 5     Points: 2

Hi,

/W is for word,/d is for numbers ..
/d{3} means it could accept 3 digits.

|||y in in emaild id they check fo@,.in email id.

eg:

myname@yahoo.co.in

they will validate for appearance of @ , .. in mail Between words.Also check for Special chars


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : clear textboxes
Previous : menus
Return to Discussion Forum
Post New Message
Category:

Related Messages

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.