Friday, September 7, 2012

Validation Expression for pincode in asp.net

validation expression for pincode checking \d{0,6} 

^\w+$ - text without spaces and numbers

http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? -
for url

^[0-9]+$ - for numbers

\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*    -  for email
 
 

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Hi Raghavendhar!

    I think the validation expression for pincode should be \d{6}. Or else even single digit will be accepted as pincode.

    Thanks! Your blog helps me in many ways!

    ReplyDelete

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software