Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago
4

url

ECMAScript (JavaScript)
no description available
Submitted by anonymous - 9 years ago

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 - 5 months ago