Regular Expressions 101

Community Patterns

0

All

PCRE2 (PHP >=7.3)
all
Submitted by anonymous - 2 years ago
0

url-selection

PCRE2 (PHP >=7.3)
url-selection
Submitted by anonymous - 2 years ago
0

FindQuoteDiv

PCRE2 (PHP >=7.3)
FindQuoteDiv
Submitted by anonymous - 2 years ago
0

URL

PCRE2 (PHP >=7.3)
URL
Submitted by anonymous - 2 years ago
0

Look Ahead

PCRE2 (PHP >=7.3)
Look Ahead
Submitted by anonymous - 2 years ago

Match any url in text or html (http, https)

3

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:http[s]?:\/\/.)?(?:www\.)?[-a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b(?:[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)
/
gm

Description

Loading markdown...
Submitted by Jérémy Munsch - 2 years ago