Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
http.?:\/\/(w{3}\.?|)(.*)
/
gm

Description

matches domains with or without www, does not include www

Submitted by anonymous - 2 years ago