I ran what I think is a pretty standard regex, but when no match is found, I get the following error. When there is a match, the error doesn't appear. Any ideas?
Warning: Compilation failed: nothing to repeat at offset 1 in filename.php on line 61
The code is below:
$regex = '/^' . $arrayGetScale['Validation_String'] . '+$/';
if (!(preg_match($regex, $_REQUEST[$questionID]))) {
reportError($sis_root_path, "One or more questions were answered improperly.");
}
Thanks for your help.