2012-07-16





XRegExp is an open source (MIT License) JavaScript library that provides augmented, extensible regular expressions. You get new syntax, flags, and methods beyond what browsers support natively. XRegExp is also a regex utility belt with tools to make your client-side grepping simpler and more powerful, while freeing you from worrying about pesky cross-browser inconsistencies and the dubious lastIndex property.

XRegExp is fully compliant with the regular expression flavor specified in ES3 and ES5. It works with Internet Explorer 5.5+, Firefox 1.5+, Safari 3+, Chrome, and Opera 9.5+. You can also use it on the server with Node.js.

Features

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

Adds new regex flags: s, to make dot match all characters; x, for free-spacing and line comments; and n, for explicit capture mode.

Provides an extensive and powerful suite of functions that make complex regex processing simpler.

Fixes or helps you avoid the most commonly encountered cross-browser inconsistencies in regex behavior and syntax.

Supports addons that add new XRegExp syntax, flags, and methods. Offical addons support Unicode, recursive matching, grammatical patterns, and more.



Requirements: None

Demo: https://github.com/slevithan...usage-examples

License: MIT License
Subscribe To Functionn:
RSS |
Twitter |
Google+ |
Facebook | Email

Show more