capn-regex

1.0.1 • Public • Published

capn-regex

by Elvin Yung

Regex capture Nth group

Quickstart

var capn = require('capn-regex');
 
capn('{{x.x}}{{y}}{{}}', /\{{2}([^\}]*)\}{2}/g, 1);  // ["x.x", "y", ""]

Usage:

capn(string, pattern, group);

Readme

Keywords

Package Sidebar

Install

npm i capn-regex

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • elvinyung