Regular Expressions 101

Library entries

5
javascript

Hello world !

no description available
Submitted by Fedir RYKHTIK - 10 years ago
5
javascript

Accept url without www

no description available
Submitted by anonymous - 9 years ago
5
javascript

MAC address

a mac address separated by dashes or colons.
Submitted by anonymous - 8 years ago
5
javascript

password 1upper 1lower 1number 1specialcharater

fjk@1Qaa$
Submitted by Anuswadh - 7 years ago
5
python

Form Tag

Form Tag
Submitted by Jay Patel - 7 years ago
5
python

psswd

no description available
Submitted by anonymous - 7 years ago
4
javascript

Repeated words (JS)

no description available
Submitted by paconaranjo - 9 years ago
4
javascript

url matching

supports all major protocols
Submitted by matheus silva - 8 years ago
4
javascript

match brackets outside quotes

no description available
Submitted by Jerry - 8 years ago

Username with "_" "-"

Vote

12

Regular Expression
javascript

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

Description

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