Skip to content

lvn/capn-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

capn-regex

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

About

Captain your regex.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published