Continuing the discussion from Restrict Possible Usernames: cant restrict number:
Check out this for regular expressions: https://regexr.com/
Do you have a question?
Yes Its on the link. here:
/^[a-z]+[a-z]+\d*$/i
It would depend on the tests. [a-z]
is not exactly the same as \D
. \D
is any non-digit character, but [a-z]
will only match a letter.
1 Like