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
";
}
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 0.3.0 | 2008-Feb-20 | 1.87 KB | Recommended for 1.0.x | ||
