Regular Expressions 101

Sponsors

Library entries

-3
pcre

RegEX for account code starting with 000-

no description available
Submitted by Joe H - 7 years ago
-3
pcre

Telephone

Find Telephone
Submitted by Mr.Fail - 7 years ago
-3
pcre

iOS.Strings

no description available
Submitted by anonymous - 7 years ago
-3
pcre

ipv4 - short version

no description available
Submitted by gromozeka - 7 years ago
-3
pcre

UpperCase words

no description available
Submitted by ivo - 7 years ago
-3
pcre

a

a
Submitted by a - 7 years ago
-3
pcre

Replace abba with ABBA

no description available
Submitted by anonymous - 7 years ago
-3
pcre

retrieve hostname without subdomain

no description available
Submitted by Diego Zuluaga - 7 years ago

URL regexp

Vote

41

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