Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: (untagged)
Hi all,

I am doing validations for text box and i want to check that it allows to enter the alphabets,spaces.so for alphabets we write the exp as [a-zA-Z] but for space(space bar) how should i do it ?

Thanks in advance...
Posted

1 solution

try [a-zA-Z\s]
 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900