public function isMatching($url)
    {
        if ($this->getRegex() === null) {
            return true;
        }

        if (preg_match($this->getRegex(), $url)) {
            return true;
        }

        return false;
    }
public function isMatching($url)
    {
        if ($this->getRegex() === null) {
            return true;
        }

        if (preg_match($this->getRegex(), $url)) {
            return true;
        }

        return false;
    }
public function isMatching ( $ url ) { if ( $ this -> getRegex ( ) === null ) { return true ; } if ( preg_match ( $ this -> getRegex ( ) , $ url ) ) { return true ; } return false ; }
Check if route configuration matches url

@param string $url

@return null|string
Check if route configuration matches url