Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Regex URL validation pattern

Submitted by Septian Maulana - a year ago