@danielberndt/match-all
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i @danielberndt/match-all

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • danielberndt