VAlidations

Posted by Durga under ASP.NET on 12/18/2008 | Views : 1257 | Status : [Member] | Replies : 1
1.I get the name(main string) and substring from user,i have to check whether the substring is present in the main string,and i have to check how many letters are present ,then case also i have to check.

2.I have to get phone number from textbox,it must be a standard pattern that is 3 digits STD code then number of 6 digits,inbetween thers is one hypen,how i made this please inform.

3.I have to get password between more than 6 less than 24 character,strating one is character last one is symbol how i do this ,explain me




Responses

Posted by: Poster on: 12/18/2008 [Member] Starter

Up
0
Down
For all above things, you can use various regular expressions.

You can read following articles to get help from.

http://nilangshah.wordpress.com/2007/06/26/password-validation-via-regular-expression/

http://regexlib.com/Default.aspx

OR http://www.nikhedonia.com/notebook/entry/input-validation-using-regular-expressions/ This may also help in certain way.

Thanks

Durga, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response