public function isMatch($pathInfo)
	{
		$this->compile();

		$pathInfo = trim($pathInfo, '/');

		if (!preg_match($this->pattern, $pathInfo, $paramValues))
		{
			return false;
		}

		foreach ($this->paramNames as $name)
		{
			$this->params[$name] = isset($paramValues[$name]) ? urldecode($paramValues[$name]) : null;
		}

        return true;
	}
public function isMatch($pathInfo)
	{
		$this->compile();

		$pathInfo = trim($pathInfo, '/');

		if (!preg_match($this->pattern, $pathInfo, $paramValues))
		{
			return false;
		}

		foreach ($this->paramNames as $name)
		{
			$this->params[$name] = isset($paramValues[$name]) ? urldecode($paramValues[$name]) : null;
		}

        return true;
	}
public function isMatch ( $ pathInfo ) { $ this -> compile ( ) ; $ pathInfo = trim ( $ pathInfo , '/' ) ; if ( ! preg_match ( $ this -> pattern , $ pathInfo , $ paramValues ) ) { return false ; } foreach ( $ this -> paramNames as $ name ) { $ this -> params [ $ name ] = isset ( $ paramValues [ $ name ] ) ? urldecode ( $ paramValues [ $ name ] ) : null ; } return true ; }
Determine matching route by given uri.

@param string $pathInfo
@return bool
Determine matching route by given uri .