Regular Expressions 101

Library entries

0
dotnet

for killerswim

a
Submitted by anonymous - a day ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 5 days ago
0
pcre

Proxy Matcher

Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by dev.tntd2k2 - 8 days ago
0
pcre

latlonlatlon

gg
Submitted by anonymous - 9 days ago
0
javascript

test

test
Submitted by anonymous - 9 days ago

URL regexp

Vote

40

Regular Expression
pcre

/
((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)
/
ig

Description

Loading markdown...
Submitted by Matthew O'Riordan - 10 years ago