Regular Expressions 101

Library entries

Username with "_" "-"

Vote

11

Regular Expression
javascript

/
^(?=.{3,20}$)(?![_.-])(?!.*[_.-]{2})[a-zA-Z0-9_-]+([^._-])$
/

Description

Loading markdown...
Submitted by Gianvy - 6 years ago