Regular Expressions 101

Sponsors

Library entries

-1
pcre2

T

T
Submitted by me - 2 years ago
-1
python

test

d
Submitted by anonymous - a year ago
-1
pcre2

bl_regex_fees_types_2

guif
Submitted by guif - a year ago
-1
pcre2

1

1
Submitted by anonymous - 8 months ago
-1
pcre2

213

12312
Submitted by anonymous - 8 months ago
-1
pcre2

slug numeric

pattern to validate a slug with numbers
Submitted by mestri.rodrigo - 8 months ago
-1
pcre2

is

Hi it is me
Submitted by anonymous - 8 months ago
-2
pcre

Finds HTML img tags

no description available
Submitted by Matt Solum - 9 years ago
-2
pcre

Remove namespaces

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