Skip to content

danielberndt/match-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

match-all

return all regexp-match objects for a string

install

npm i @danielberndt/match-all;

usage:

import matchAll from "@danielberndt/match-all";

const matches = matchAll("f:1 o:2 o:3", /\w:(\d+)/);
console.log(matches.length); // -> 3
console.log(matches[0][1]); // -> '1'

About

return all regexp-match objects for a string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published