Regular Expressions 101

Community Patterns

Regex URL validation pattern

1

Regular Expression
ECMAScript (JavaScript)

/
^(https?|ftp):\/\/[^\s/$.?#]+\.[^\s]+$|www\.[^\s/$.?#]+\.[^\s]+$|[^\s/$.?#]+\.[^\s]+$
/
gm

Description

Loading markdown...
Submitted by Septian Maulana - 6 months ago