Core/Routing/Route.php
protected function regexUrl($matches)
    {
        $key = substr($matches[0], 1);
        if (isset($this->conditions[$key])) {
            return '(' . $this->conditions[$key] . ')';
        } else {
            return '(' . self::$conditionRegex['default'] . ')';
        }
    }
protected function regexUrl($matches)
    {
        $key = substr($matches[0], 1);
        if (isset($this->conditions[$key])) {
            return '(' . $this->conditions[$key] . ')';
        } else {
            return '(' . self::$conditionRegex['default'] . ')';
        }
    }
protected function regexUrl ( $ matches ) { $ key = substr ( $ matches [ 0 ] , 1 ) ; if ( isset ( $ this -> conditions [ $ key ] ) ) { return '(' . $ this -> conditions [ $ key ] . ')' ; } else { return '(' . self :: $ conditionRegex [ 'default' ] . ')' ; } }
Helper regex for matches function.

@param string $matches
@return string
Helper regex for matches function .