Regarding Regular expression in asp.net [Resolved]

Posted by Graha under Regular Expressions on 8/2/2011 | Points: 10 | Views : 2493 | Status : [Member] | Replies : 5
What is regular epression?

what is the purpose of *, ^ ,/ , $ using these special characters?

i need code for regular expression allowing alphabets, underscores and spaces only using regular expression

i need code for regular expression allowing alphanumerics and spaces only..using regular expression




Responses

Posted by: A4u_6178 on: 8/2/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved

You can refer this link to learn regular expressions
http://www.regular-expressions.info/tutorial.html
http://www.zytrax.com/tech/web/regex.htm

Thanks & Regards,

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

Posted by: A4u_6178 on: 8/2/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
you can refer below for a guide on regular expressions..
http://msdn.microsoft.com/en-us/library/ms972966.aspx

Thanks & Regards,

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

Posted by: Graha on: 8/2/2011 [Member] Starter | Points: 25

Up
0
Down
i dint understand....please explain one by one..

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

Posted by: A4u_6178 on: 8/2/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

1.Try this. "^[0-9_ ]+$"
2.try this. "^[0-9a-zA-Z ]+$"

Thanks & Regards,

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

Posted by: Graha on: 8/2/2011 [Member] Starter | Points: 25

Up
0
Down

thanks...... its very useful to me



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

Login to post response