Regular Expressions 101

Sponsors

Library entries

9
pcre

only numbers

A string with only numbers in
Submitted by Gotts - 7 years ago
9
pcre

Max - URL Extract

no description available
Submitted by Ayush - 6 years ago
10
pcre

remove comments from php code

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

Codice fiscale

Check "codice fiscale"
Submitted by Luca - 7 years ago
12
pcre

Match Gmail Email

Match Gmail Email
Submitted by Óscar Enríquez - 8 years ago
16
pcre

Alphanumeric Regex

no description available
Submitted by Deepan - 7 years ago
16
pcre

IPv4

no description available
Submitted by robwa - 7 years ago
16
pcre

Cron schedule

Validate cron lines (even the ones commented out)
Submitted by anonymous - 6 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 - 9 years ago