public function matchUrl($pattern)
    {
        if ($this->matchValue($this->getUrl(), $pattern)) {
            return $this->getUrl();
        }

        return false;
    }
public function matchUrl($pattern)
    {
        if ($this->matchValue($this->getUrl(), $pattern)) {
            return $this->getUrl();
        }

        return false;
    }
public function matchUrl ( $ pattern ) { if ( $ this -> matchValue ( $ this -> getUrl ( ) , $ pattern ) ) { return $ this -> getUrl ( ) ; } return false ; }
Check if the url matches the given pattern.

@param string $pattern Pattern to match.

@return bool|null|string Url value if pattern matches, otherwise false.
Check if the url matches the given pattern .