0

I need to build a regex to match: lowercase letters, numbers, underscore and length should be between 4 and 16 characters (both included);

/[a-z0-9_]{4,16}/g

This should be strait on, but my code is braking (in the context of the challenge I'm in). Even though is passing on RegExr.com.

It's hard to see whats wrong because its giving me the right match online. I've tried to see some tutorials but I believe that the regex is correct, although I can't figure whats wrong...

Tiago Ruivo
  • 173
  • 7

0 Answers0