src/sap.m/src/sap/m/MaskInputRule.js
function validateRegex(sRegex) {
		if (/.+/i.test(sRegex)) {
			return true;
		}
		Log.error("The regex value '" + sRegex + "' is not valid");
		return false;
	}
function validateRegex(sRegex) {
		if (/.+/i.test(sRegex)) {
			return true;
		}
		Log.error("The regex value '" + sRegex + "' is not valid");
		return false;
	}
function validateRegex ( sRegex ) { if ( / .+ / i . test ( sRegex ) ) { return true ; } Log . error ( "The regex value '" + sRegex + "' is not valid" ) ; return false ; }
Checks if the specified regular expression is valid.
@param {String} sRegex The regular expression string to be validated
@returns {boolean} True of the specified regular expression string is valid, false otherwise
@private
Checks if the specified regular expression is valid .