I'm using ASP.NET and i designed a page which contains many text boxes. I've used RegularExpressionValidator for validation.
Now i want to validate a text box which should accept alphabets (a-z and A-Z), comma(,), dot(.), open bracket((), close bracket()), blank space and hypen(-) in any order.
eg. SD.RE - (ad.sd., sd.we.,)
To accept all these characters, how to write a expression.
Re: How to validate using RegularExpressionValidator
Originally Posted by hany_3210
This is ur need:
Expression
((\w|\W)(\w|\W)(.))*
Ok good luck.
Thank you.
This accepts only 3 characters, but i need expression that accepts more than 3 characters. Characters should not accept numbers(0-9), special characters such as #, @, $, %, !.....
Should accept alphabets, space, hypen(-), dot(.), comma(,), open bracket and close bracket.
Re: How to validate using RegularExpressionValidator
why dont you go to the Regex Library Website. theres literally thousands of Regex expressions catalogued and there is a regex tester, its certinally more helpful than posting messages to an unrelated forum trying to get your answers.
Bookmarks