Hello friends
In my application I want to customize regular expression in such a way that it will allow character and dot only. For eg. I could be be able to enter M.C.A or MCA any of these. For this task how to customize regular expression? I tried [a-zA-Z] followed by\ and dot in side bracket but is not working.
I also tried [ABCD] just for testing but it shows invalid text for ABC.
What might be the reason????
Thanks to all…
Hello friends In my application I want to customize regular expression in such a
Share
You will need to escape the dot as in regex it normally means ‘any character’
in c# you will need to deinfe the regex string as follows:
Edit based on comment: