Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=href=\"|src\=\"|content\=\"|style\=\"|\")(?P<PROTOCOLE>https:\/\/|http:\/\/|\/)(?P<WWW>www\.|)(?P<GLOBAL>(?<SOUSDOMAINE1>[\w\-\/]+)(?P<EXTENSION1>\.com|\.fr|\.org|\.io|\.tech|\.net|\.xyz|\.biz|\.school)|(?<SOUSDOMAINE2>[\w\-\/]+)\.(?P<NOM>[\w\-]+)(?P<EXTENSION2>\.com|\.fr|\.org|\.io|\.tech|\.net|\.xyz|\.biz|\.school)|[\w\-\/]+)(?P<SUFFIXE>[\w\-\?\-\/\.\=\&\;\$\:\+\%\@]+|)
/
gm

Description

no description available

Submitted by anonymous - 4 years ago