Regex Allow only spaces and charcters in a textbox
-
Hello Everyone I am new in asp.net 2.0 and i am working on webpage where i want to use Regex to validate my textbox. My textbox only contains charcters and spaces allowed. I want only charcters and space allow in my textbox, no special charcters and numeric values are allowed. I am using the Regex such as "^[a-z]*$" Thanks in advance Saurabh Agarwal
-
Hello Everyone I am new in asp.net 2.0 and i am working on webpage where i want to use Regex to validate my textbox. My textbox only contains charcters and spaces allowed. I want only charcters and space allow in my textbox, no special charcters and numeric values are allowed. I am using the Regex such as "^[a-z]*$" Thanks in advance Saurabh Agarwal
this was a question ? :confused:
Regex.Replace("stringInput", @"^[a-z]*", "", RegexOptions.IgnoreCase);