Regular Expressions 101

Community Patterns

url match

1

Regular Expression
PCRE (PHP <7.3)

~
(http://|https://|www).*\.([a-z]|/d){2,3}
~
gm

Description

match the most common url stuctures

Submitted by whoevor - 9 years ago