Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
([\w+]+\:\/\/)?([\w\d-]+\.)*[\w-]+[\(\)\#\.\:]\w+([\(\)\/\?\=\&\#\.]?[\w-]+)*\/?[\(\-\w\)\?\=\#_]*
/
gm

Description

Regex for url

Submitted by anonymous - 2 years ago (Last modified 2 years ago)