NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4865 most downloaded on npm
Extended regular expressions
Last release 11 days ago
24 Sep 2026
Release timing varies
gaps range from 6 weeks to 2.7 years
Most releases are documented
notes for 14 of 23 stable releases
3 versions withdrawn
withdrawn after publishing
15 years old
26 releases · first in 2011
Use Object.setPrototypeOf instead of __proto__ when augmenting regexes.
Fix prototype pollution vulnerability in pattern caches: #362
Bug Fixes
One column per quarter.
Support and defer to native /d flag in ES2021 environments
Improvements
/d flag in ES2021 environmentsBug Fixes
package.jsonXRegExp.matchRecursive : When doing a global, non-sticky search and providing valueNames , return an empty array if no matches are found, rather than
Breaking Changes
XRegExp.matchRecursive: When doing a global, non-sticky search and providing valueNames, return an empty array if no matches are found, rather than an array with one object containing a between value that contains the whole target string (this change is to match every other case when no matches are found, e.g. when not providing valueNames, not using global with flag g, or doing a sticky search with flag y): 6e1711eImprovements
Fix TypeScript definition for XRegExp.matchChain : #325
Adds docs folder with extensive documentation.
docs folder with extensive documentation.Enable the namespacing feature by default for alignment with ES2018 (moves named capture properties to the groups object of matches and to the last ar
Breaking Changes
namespacing feature by default for alignment with ES2018 (moves named capture properties to the groups object of matches and to the last argument of replacement callbacks): #316Improvements
Script=' prefix (from ES2018 syntax) for Unicode script tokens: #225XRegExp.matchRecursive: Add delimiter and position info to error when unbalanced delimiters are found: #293(?:) into native regex source in more cases: 076f950 and d78a262s in ES2018 environments: 98abea8Bug Fixes
XRegExp.exec: Preserve the groups object that comes from native ES2018 named capture: c4a83e7XRegExp.exec: Set the groups property to undefined if there are no named captures: #320XRegExp.escape: Escape whitespace in a way that works with ES6 flag u: #197XRegExp.replace: Throw when using native named capture and a numbered backreference one higher than the number of captures in the replacement text: #317XRegExp.replace: Fix edge case issues with replacement text syntax: #318Add browser field to package.json to fix webpack: #308
Add TypeScript definitions and tests #285 #286 #288
Upgrade to Unicode 12.1.0 : #278
Update @babel dependencies to v7.2.x
Update @babel dependencies to v7.2.x
Hotfix for Babel removing core-js from the runtime package.
Hotfix for Babel removing core-js from the runtime package.
Nothing published for this version
Upgrades the Unicode addons to Unicode 11.0.0.
Upgrades the Unicode addons to Unicode 11.0.0.
Hotfix for npm package missing the tools/output directory. No code changes.
Hotfix for npm package missing the tools/output directory. No code changes.
Added installable namespacing option (off by default) that moves named capture results to a groups object. This makes it easier to loop over named cap
New Features
namespacing option (off by default) that moves named capture results to a groups object. This makes it easier to loop over named captures after executing a regex, and aligns with native named capture handling in ES2018. See #175.Cased_Letter (LC) category to the Unicode Categories addon. See #220.Improvements
(?:) separating tokens. See #196.XRegExp is now published as ES5, rather than ES3. See https://github.com/slevithan/xregexp/issues/108.
Breaking Changes
XRegExp.install('natives') was removed. See https://github.com/slevithan/xregexp/pull/207.New Features
XRegExp.tag was added to the build plugin for tagged template string construction. See https://github.com/slevithan/xregexp/pull/180.$<n> and $<name> can be used as alternative backreference syntax in replacement text. See https://github.com/slevithan/xregexp/pull/181.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →