capn-regex
Elvin Yung
byRegex 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);
var capn = require('capn-regex'); capn('{{x.x}}{{y}}{{}}', /\{{2}([^\}]*)\}{2}/g, 1); // ["x.x", "y", ""]
capn(string, pattern, group);
npm i capn-regex
1
1.0.1
MIT