I want an HTML Pattern attribute in order to have only letters A-Z, a-z, 0-9, and spaces.
I have the following which work, but the only problem is that, it also accepts it if I just enter a space and click submit.
[A-Za-z 0-9]+
For that reason I decided I am going to require atleast 3 characters, one of them being a letter. That lead me to write this:
[A-Za-z 0-9](?=.*[A-Za-z]).{3,}
But on this one, if I enter Jui;18 it accepts it. an since this is going to based into sql, that will create problems. Why does it accept the semicolon and what is the right pattern I need?
patternattribute wouldn’t help anyway.patternattribute on the client, then add it.