These are the examples how to validate the input by using RegularExpressionValidator ...
Expressions --------- > Validation
\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* ---------> E- Mail validation
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? ---------> webURL validation with htttp
([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)? ---------> webURL validation without htttp
\w{4}.* --------->Atleast 4 digits validation ( password )
^\d{6}$ ---------> Atleast 5 Numeric values ( pincode )
[a-zA-Z0-9\-_]{3,15} 3 to 15 range ... a to z lower & upper case allowd plus '-' allowed u
should a ' &' and other spl char means u should add like this
[ a-zA-Z0-9\-&*$_]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment