Restrict Possible Usernames lesson

I would read the square brackets as “one of” or “any of” in my head.
/a-zA-Z/ would match the literal characters “a-zA-Z”. The - symbol only indicates a range because it is in the brackets.

1 Like