Regular Expressions 101

Sponsors

Library entries

1
javascript

Simple CSS selectors

Matches all types of CSS selectors
Submitted by anonymous - 5 hours ago
0
pcre2

semantic-release

Teste semantic release
Submitted by leonardo.mendes - 3 days ago
0
pcre2

myspace

myspace
Submitted by anonymous - 3 days ago
0
pcre2

upload paths

upload paths
Submitted by anonymous - 3 days ago
0
pcre2

Find SQL injection opportunities

-
Submitted by anonymous - 4 days ago

Username with "_" "-"

Vote

12

Regular Expression
javascript

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

Description

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