Namespace: RegExp

utilx. RegExp

utilx.RegExp
Source:

Methods

(static) exec(regExpArg, stringArg) → {Array}

Fixes browser bugs in the native `RegExp.prototype.exec`.
Parameters:
Name Type Description
regExpArg RegExp
stringArg string String to search.
Source:
See:
Returns:
Match array with named backreference properties, or `null`.
Type
Array

(static) isRegExp(inputArg) → {boolean}

Returns true if the operand inputArg is a RegExp.
Parameters:
Name Type Description
inputArg *
Source:
Returns:
Type
boolean

(static) test(regExpArg, stringArg) → {Boolean}

Fixes browser bugs in the native `RegExp.prototype.test`.
Parameters:
Name Type Description
regExpArg RegExp
stringArg string String to search.
Source:
See:
Returns:
Whether the regex matched the provided value.
Type
Boolean