protected static validateStringRegex ( string $test, string $source, string $regex, string $argument = "Argument" ) | ||
$test | string | the input to test |
$source | string | the name of the function calling this |
$regex | string | valid values for this attribute, as a regex |
$argument | string | the name of the parameter being validated |