Regular Expressions 101

Community Patterns

URL starts with HTTP/HTTPS

0

Regular Expression
PCRE2 (PHP >=7.3)

/
((https?:\/\/)|(\/)|(..\/))(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 years ago