Download XRegExp 1.5.0 with comments, or grab the minified version (2.7 KB gzipped).
XRegExp is an open source (MIT license) JavaScript library that provides an augmented, extensible, cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods.
XRegExp is fully compliant with the regular expression flavor specified in ES3 and ES5, and has been tested with Internet Explorer 5.5–8, Firefox 2–3.6, Safari 3–4, Chrome 1–4, and Opera 9.5–10.5. It uses feature detection for its cross-browser support—no browser sniffing.
s, to make dot match all characters (aka dotall or singleline mode), and x, for free-spacing and comments (aka extended mode).For those of you so advanced in your RegEx powers that you've hit the limitations of the built-in JavaScript implementation, check out XRegExp, an open-source regular-expression library that supports named capture and other advanced features.
XRegExp adds more power to RegExp with features that will be part of the browsers of tomorrow.
Wow.
Steve Levithan, once again, brings the JS RegExp smackdown.
XRegExp [...] does some killer stuff that the native JS RegExp does not; at only 2.4KB, it's a must-have for grepping and/or parsing on the client side.
XRegExp [...] adds some amazing features to stock JS capabilities.
Are you using XRegExp in your projects? I'd be happy to hear about it.