XRegExp provides augmented, extensible JavaScript regular expressions.
XRegExp provides augmented, extensible JavaScript regular expressions. It adds new syntax, flags, and methods beyond what browsers support natively. XRegExp is also a regex utility belt with tools to make client-side grepping simpler and more powerful, while removing cross-browser inconsistencies.
XRegExp supports all native ES5 regular expression syntax. It works in browsers and on the server using Node.js. It can additionally be loaded as a RequireJS module.