url-regexp

RegExp object to match and validate URL(s).

Usage no npm install needed!

<script type="module">
  import urlRegexp from 'https://cdn.skypack.dev/url-regexp';
</script>

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