# regex-match-all

> PHP-like regex match all

Latest version **1.0.2** (published 2016-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install regex-match-all
pnpm add regex-match-all
yarn add regex-match-all
bun add regex-match-all
```

## 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 | 2016-08-02 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hristiyan Nikolov |
| Maintainers | newton_ |

## Links

- npm: https://www.npmjs.com/package/regex-match-all
- Repository: https://github.com/newtoncodes/regex-match-all
- Issues: https://github.com/newtoncodes/regex-match-all
- npm.io page: https://npm.io/package/regex-match-all

## Recent versions

- 1.0.2 (latest) — 2016-08-02
- 1.0.1 — 2016-08-02
- 1.0.0 — 2016-08-02

## README

# regex-match-all

PHP-like regex match all

## Installation

`npm install --save regex-match-all`

The UMD build is in the dist directory.

Can be used both in node and browser.

### Usage
~~~js
'use strict';

const RegEx = require('../src/RegEx.js');

let text = 'asd12 dsa asd23 dsa asd34 dsa';

console.log(JSON.stringify(
    
    RegEx.matchAll(/asd(\d)(\d)/g, text)
    
, null, 4));

/*
[
    [
        "asd12",
        "asd23",
        "asd34"
    ],
    [
        "1",
        "2"
    ],
    [
        "2",
        "3"
    ],
    [
        "3",
        "4"
    ]
]
*/

console.log(JSON.stringify(
    
    RegEx.matchAll(/asd(\d)(\d)/g, text, RegEx.REGEXP_PATTERN_ORDER)
    
, null, 4));

/*
    Same as above
*/

console.log(
    
    JSON.stringify(RegEx.matchAll(/asd(\d)(\d)/g, text, RegEx.REGEXP_SET_ORDER)
    
, null, 4));

/*
[
    [
        "asd12",
        "1",
        "2"
    ],
    [
        "asd23",
        "2",
        "3"
    ],
    [
        "asd34",
        "3",
        "4"
    ]
]
*/
~~~

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