url-regexp

RegExp object to match and validate URL(s).

BSD-3-Clause 3 个版本
安装
npm install url-regexp
yarn add url-regexp
pnpm add url-regexp
bun add url-regexp
README

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
版本列表
1.0.2 2014-11-22
1.0.1 2014-11-02
1.0.0 2014-11-02