Regular Expressions 101

Community Patterns

URL Cleaner

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(https?:\/\/)?(www\.)?(\S+)(\.[^\s\/]+)(\/\S*)?
/
mg

Description

Loading markdown...
Submitted by anonymous - 9 months ago
(Last modified 4 months ago)