i need to validate a text fiel in my application. this cant contain neither digit nor special char so i tried this regex:
[A-Za-z]*
The problem is that this regex doesn’t work when i put a digit or a special char in the middle or at the end of the String.
i need to validate a text fiel in my application. this cant contain neither
Share
You should use it like this:
to match text (1 or more in length) containing ASCII letters only.