Valid Username Regular Expression

  • + 3 comments

    Because the code framework in this challenge uses Matcher.find(), and that returns true if the pattern can match any substring in the target. Without the start and end anchors, any invalid username that also had a valid username inside of itself would get approved.