# regex-matches

> Get regex matches without looping

Latest version **1.0.1** (published 2018-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install regex-matches
pnpm add regex-matches
yarn add regex-matches
bun add regex-matches
```

## 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.1 |
| Published | 2018-01-13 |
| First published | 2018-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Eckermann |
| Maintainers | ecrmnn |

## Links

- npm: https://www.npmjs.com/package/regex-matches
- Repository: https://github.com/ecrmnn/regex-matches
- Issues: https://github.com/ecrmnn/regex-matches/issues
- npm.io page: https://npm.io/package/regex-matches

## Recent versions

- 1.0.1 (latest) — 2018-01-13
- 1.0.0 — 2018-01-13

## README

# regex-matches
> Get regex matches without looping

[![travis](https://img.shields.io/travis/ecrmnn/regex-matches/master.svg?style=flat-square)](https://travis-ci.org/ecrmnn/regex-matches/builds)
[![npm version](https://img.shields.io/npm/v/regex-matches.svg?style=flat-square)](http://badge.fury.io/js/regex-matches)
[![npm downloads](https://img.shields.io/npm/dm/regex-matches.svg?style=flat-square)](http://badge.fury.io/js/regex-matches)
[![npm license](https://img.shields.io/npm/l/regex-matches.svg?style=flat-square)](http://badge.fury.io/js/regex-matches)
[![prs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![eslint](https://img.shields.io/badge/code_style-airbnb-blue.svg?style=flat-square)](https://github.com/airbnb/javascript)

### Installation
```bash
npm install regex-matches --save
```

### Usage
```javascript
const re = require('regex-matches')

re(/\b\w*[Oo]\w*\b/, 'the quick brown fox jumps over the lazy dog');

//=> [
//=>   ['brown'],
//=>   ['fox'],
//=>   ['over'],
//=>   ['dog']
//=> ]

// Result when using capture groups
re(/\b\w*([Oo])\w*\b/, 'the quick brown fox jumps over the lazy dog');

//=> [
//=>   ['brown', 'o],
//=>   ['fox', 'o],
//=>   ['over', 'o],
//=>   ['dog', 'o]
//=> ]
```

### License
MIT © [Daniel Eckermann](http://danieleckermann.com)

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