API module to support the integration of http://xregexp.com/ so other modules don't have to include it and to avoid conflicts.
This module uses the Libraries API. Use version 7.x-2.0-alpha2 or newer!
Installation
Download the XRegExp Library and put it under sites/all/libraries/xregexp or sites/>domain</libraries/xregexp and enable the module.
You can download XRegExp from XRegExp, use the latest version.
Usage
If your module wishes to use the xregexp library you can load it like this:
libraries_load('xregexp');
If you have XRegExp 2.x, this will load the xregexp-all.js file. This means XRegExp is loaded with all its plugins (except backcompat.js, which you can still manually enable through the UI).
If you have XRegExp 1.x, this will load the xregexp.js file. You can still enable all the plugins you downloaded through the UI.