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
'use strict'; const RegEx = ; let text = 'asd12 dsa asd23 dsa asd34 dsa'; console; /*[ [ "asd12", "asd23", "asd34" ], [ "1", "2" ], [ "2", "3" ], [ "3", "4" ]]*/ console; /* Same as above*/ console; /*[ [ "asd12", "1", "2" ], [ "asd23", "2", "3" ], [ "asd34", "3", "4" ]]*/