XRegExp – A JavaScript Library For More Powerful Regular Expressions

XRegExp is an open source JavaScript library providing an augmented, extensible and cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods.

It adds new regex and replacement text syntax, including comprehensive support for named capture.


The library also offers a suite of functions and methods that make complex regex processing a breeze.

And, it fixes the most commonly encountered cross-browser inconsistencies in regex behavior and syntax (compatible with all major browsers).