المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Allow space in text box - add the code for allowing spaces in regular expression validator



C# Programming
09-18-2009, 03:31 AM
Hi All,

In my text box i need to allow alphanumerics and some special characters. Below is the code i used in Regular expression valiadator -it works perfectly fine.
"^[0-9a-zA-Z,@&_.-]+$"

I need to allow spaces in textbox. so can anyone please help me how to add it. I tried to add a space in the above existing validation but throws an error. Help required in this. Thanks in advance.

Thanks,
Santa.