Regular Expressions 101

Sponsors

Library entries

16
pcre

Cron schedule

Validate cron lines (even the ones commented out)
Submitted by anonymous - 6 years ago
12
pcre

Match Gmail Email

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

Codice fiscale

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

remove comments from php code

no description available
Submitted by anonymous - 7 years ago
10
python

entity

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

Validate Base64 single-line string

no description available
Submitted by ka. - 9 years ago
9
pcre

Fixo LDN CSP e SEM CSP

no description available
Submitted by Marcos Müller - 8 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