xregexp-lookbehind

1.0.0 • Public • Published

xregexp-lookbehind

A tiny node wrapper around slevithan's lookbehind implementation.

Usage

var merge = require('lodash.merge');
var XRegExp = require('xregexp').XRegExp;
 
merge(XRegExp, require('xregexp-lookbehind'));
 
console.log(XRegExp.matchAllLb("Catwoman's cats are fluffy cats", '(?i)(?<!fluffy\\W+)', /cat\w*/i));
// ['Catwoman', 'cats']

/xregexp-lookbehind/

    Package Sidebar

    Install

    npm i xregexp-lookbehind

    Weekly Downloads

    58

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • beaugunderson