npm.io
1.0.2 • Published 11 years ago

url-regexp

Licence
BSD-3-Clause
Version
1.0.2
Deps
0
Vulns
0
Weekly
0
Stars
7

URL RegExp

Travis build status NPM version

RegExp object to match and validate URL(s).

Usage

var URLRegExp = require('url-regexp');

Validate URL

URLRegExp.validate('input string');

Match URLs

URLRegExp.match() will return all valid URLs from the string.

URLRegExp.match('input string');

Download

Download using NPM:

npm install url-regexp

Keywords