Restrict Possible Usernames SolutionsSolution 1 (Click to Show/Hide)So…
Just looking at the solution to this… which i would never have got on my own!!
i dont understand point 6 & 7 of solution 1.
^[a-z]- first character is a letter
\d\d+- following characters are 2 or more digits
Wouldn’t this just ensure there is 1 letter at the start?
- Usernames have to be at least two characters long. A two-character username can only use alphabet letters as characters.
is this a mistake, or am i not seeing something?
i thought it would have to be ^[a-z]+ \d*$ … do you put the + inside or outside the bracket?!
I also don’t understand why you need the | or operator either
Can this also be explained to me, please.
Please could someone clarify.