Regular Expressions 101

Sponsors

Library entries

4
pcre

Phone number

no description available
Submitted by Mark Landry - 7 years ago
4
javascript

match brackets outside quotes

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

url

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

MAC address

a mac address separated by dashes or colons.
Submitted by anonymous - 7 years ago
4
javascript

Full e-mail validator

no description available
Submitted by anonymous - 7 years 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 - 9 years ago