regex-matches
Get regex matches without looping
Installation
npm install regex-matches --save
Usage
const re = ; //=> [//=> ['brown'],//=> ['fox'],//=> ['over'],//=> ['dog']//=> ] // Result when using capture groups; //=> [//=> ['brown', 'o],//=> ['fox', 'o],//=> ['over', 'o],//=> ['dog', 'o]//=> ]
License
MIT © Daniel Eckermann