Regular Expressions 101

Sponsors

Library entries

1
javascript

Simple CSS selectors

Matches all types of CSS selectors
Submitted by anonymous - 9 hours ago
0
javascript

US|CA dollar

US|CA dollar regexp
Submitted by cagatayucar - 7 days ago
0
javascript

Percentage only

Percentage only
Submitted by cagatayucar - 7 days ago
0
javascript

Tel

Válida números de telefone
Submitted by Mateus - 8 days ago
0
javascript

Mail address validation

Validates mail addresses
Submitted by Sjoerd de Vries - 11 days ago
0
javascript

placeables

placeables
Submitted by anonymous - 12 days ago
0
javascript

VidID: YouTube

ID of YouTube video with provider flag
Submitted by tomByrer - 14 days ago
0
java

Match gradle dependencies

.
Submitted by anonymous - 16 days ago
0
java

DSA

dsa
Submitted by DSA - 17 days ago
0
javascript

Pass/Fail

gaming pass fail shortcut
Submitted by Steve Muchow - 18 days ago

URL Regex (protocol strict)

Vote

3

Regular Expression
javascript

/
^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$
/
i

Description

Loading markdown...
Submitted by Diego Perini - 7 years ago