Regular Expressions 101

Community Patterns

Valid URL RegEx

1

Regular Expression
PCRE (PHP <7.3)

/
^https?:\/\/(?!localhost)[\.\w\d]{2,}
/
gm

Description

no description available

Submitted by anonymous - 3 years ago