I used this code to solve this problem freehand in regex101’s test environment:
which works with no issue:
but the test say’s that it’s incorrect. I then replaced the one or more matcher (+) with a lazy match (?) to get this:
Which the test says is correct, but as far as I’m aware and according to regex101, this only matches the individual 2 character pieces of the usernames.
I then looked in my console which technically agrees with the grader that the + works (since they ARE matched and valid which I guess is neither here nor there)
But I get the same successful message from my console with the one or more (+) which is what I believe to be the better/ correct solution: