src/Route.php
public function match($uri)
    {
        if (preg_match($this->getParsedPattern(), trim($uri), $matches) > 0) {

            $this->parameters = array_slice($matches, 1);

            return true;
        }

        return false;
    }
public function match($uri)
    {
        if (preg_match($this->getParsedPattern(), trim($uri), $matches) > 0) {

            $this->parameters = array_slice($matches, 1);

            return true;
        }

        return false;
    }
public function match ( $ uri ) { if ( preg_match ( $ this -> getParsedPattern ( ) , trim ( $ uri ) , $ matches ) > 0 ) { $ this -> parameters = array_slice ( $ matches , 1 ) ; return true ; } return false ; }
Determines if uri matches with regex. If match, return params of uri

@param string $uri
@return boolean
Determines if uri matches with regex . If match return params of uri