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);

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i capn-regex

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • elvinyung