# url-regexp

> RegExp object to match and validate URL(s).

Latest version **1.0.2** (published 2014-11-22) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install url-regexp
pnpm add url-regexp
yarn add url-regexp
bun add url-regexp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-11-22 |
| First published | 2014-11-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Gajus Kuizinas |
| Maintainers | gajus |
| Keywords | regex, url |

## Links

- npm: https://www.npmjs.com/package/url-regexp
- Repository: https://github.com/gajus/url-regexp
- Issues: https://github.com/gajus/url-regexp/issues
- npm.io page: https://npm.io/package/url-regexp

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2014-11-22
- 1.0.1 — 2014-11-02
- 1.0.0 — 2014-11-02

## README

<h2 id="url-regexp">URL RegExp</h2>

[![Travis build status](http://img.shields.io/travis/gajus/url-regexp/master.svg?style=flat)](https://travis-ci.org/gajus/url-regexp)
[![NPM version](http://img.shields.io/npm/v/url-regexp.svg?style=flat)](https://www.npmjs.org/package/url-regexp)

RegExp object to match and validate URL(s).

<h2 id="usage">Usage</h2>

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

<h2 id="validate-url">Validate URL</h2>

```js
URLRegExp.validate('input string');
```

<h2 id="match-urls">Match URLs</h2>

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

```js
URLRegExp.match('input string');
```

<h2 id="download">Download</h2>

Download using [NPM](https://www.npmjs.org/):

```sh
npm install url-regexp
```

---
_Source: https://npm.io/package/url-regexp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
