protected function checkRegExp(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation,
        $regExp
    ) {
        $value = $this->objectToCheck->getConfValueString($fieldName, $sheet);

        if (!preg_match($regExp, $value)) {
            $message = 'The TS setup variable <strong>' . $this->getTSSetupPath()
                . $fieldName . '</strong> contains the value <strong>'
                . htmlspecialchars($value) . '</strong> which isn\'t valid. '
                . $explanation;
            $this->setErrorMessageAndRequestCorrection(
                $fieldName,
                $canUseFlexforms,
                $message
            );
        }
    }
protected function checkRegExp(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation,
        $regExp
    ) {
        $value = $this->objectToCheck->getConfValueString($fieldName, $sheet);

        if (!preg_match($regExp, $value)) {
            $message = 'The TS setup variable <strong>' . $this->getTSSetupPath()
                . $fieldName . '</strong> contains the value <strong>'
                . htmlspecialchars($value) . '</strong> which isn\'t valid. '
                . $explanation;
            $this->setErrorMessageAndRequestCorrection(
                $fieldName,
                $canUseFlexforms,
                $message
            );
        }
    }
protected function checkRegExp ( $ fieldName , $ canUseFlexforms , $ sheet , $ explanation , $ regExp ) { $ value = $ this -> objectToCheck -> getConfValueString ( $ fieldName , $ sheet ) ; if ( ! preg_match ( $ regExp , $ value ) ) { $ message = 'The TS setup variable <strong>' . $ this -> getTSSetupPath ( ) . $ fieldName . '</strong> contains the value <strong>' . htmlspecialchars ( $ value ) . '</strong> which isn\'t valid. ' . $ explanation ; $ this -> setErrorMessageAndRequestCorrection ( $ fieldName , $ canUseFlexforms , $ message ) ; } }
Checks whether a configuration value matches a regular expression.

@param string $fieldName
TS setup field name to extract, must not be empty
@param bool $canUseFlexforms
whether the value can also be set via flexforms (this will be
mentioned in the error message)
@param string $sheet
flexforms sheet pointer, eg. "sDEF", will be ignored if
$canUseFlexforms is set to FALSE
@param string $explanation
a sentence explaining what that configuration value is needed for,
must not be empty
@param string $regExp
a regular expression (including the delimiting slashes)

@return void
Checks whether a configuration value matches a regular expression .