I am trying to stop the use of symbols, spaces, when people register. I see the examples when clicking on the help:
Examples:
^[A-Z]+$ - Characters from A-Z only
^[A-Z ]+$ - Characters from A-Z including space
^[A-Z0-9 ]+$ - Alphanumeric characters including space
^[\x20-\x7E]+$ - ASCII characters from 32-127
What would you use if you just want to allow a-z, A-Z, 0-9 and no spaces?
Would this be right?
^[a-zA-Z0-9]+$
Examples:
^[A-Z]+$ - Characters from A-Z only
^[A-Z ]+$ - Characters from A-Z including space
^[A-Z0-9 ]+$ - Alphanumeric characters including space
^[\x20-\x7E]+$ - ASCII characters from 32-127
What would you use if you just want to allow a-z, A-Z, 0-9 and no spaces?
Would this be right?
^[a-zA-Z0-9]+$
Comment