Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

regexpCommon


Provides commonly used regular expressions.

someVar.match($.regexpCommon('numberInteger'));
someVar.match($.regexpCommon('numberFloat'));
someVar.match($.regexpCommon('email'));
someVar.match($.regexpCommon('ssn'));
someVar.match($.regexpCommon('url'));
someVar.match($.regexpCommon('phoneNumberUS'));
someVar.match($.regexpCommon('zipCodeUS'));
someVar.match($.regexpCommon('currencyUS'));
someVar.match($.regexpCommon('htmlHexCode'));
someVar.match($.regexpCommon('dottedQuadIP'));
someVar.match($.regexpCommon('macAddress'));

Example:
var quadIP = '127.0.0.1';
if (quadIP.match($.regexpCommon('dottedQuadIP')) ) {
message += quadIP + " is a Dotted Quad IP Address
";
}

Downloads



0
Your rating: None