src/Template/Extension/URI.php
protected function checkUriRegexMatch($regex, $returnOnTrue = null, $returnOnFalse = null)
    {
        if (\preg_match('#^' . $regex . '$#', $this->uri) === 1) {
            return $returnOnTrue ?? true;
        }

        return $returnOnFalse ?? false;
    }
protected function checkUriRegexMatch($regex, $returnOnTrue = null, $returnOnFalse = null)
    {
        if (\preg_match('#^' . $regex . '$#', $this->uri) === 1) {
            return $returnOnTrue ?? true;
        }

        return $returnOnFalse ?? false;
    }
protected function checkUriRegexMatch ( $ regex , $ returnOnTrue = null , $ returnOnFalse = null ) { if ( \ preg_match ( '#^' . $ regex . '$#' , $ this -> uri ) === 1 ) { return $ returnOnTrue ?? true ; } return $ returnOnFalse ?? false ; }
Perform a regular express match.
@param  string $regex
@param  mixed  $returnOnTrue
@param  mixed  $returnOnFalse
@return mixed
Perform a regular express match .