public function checkRoute($uri)
    {
        foreach($this->strings as $expression)
        {
            // check if it matches the pattern
            $this->regex->setPattern($expression);
            if($this->regex->getMatches($uri))
            {
                $this->matchedUriParts = explode('/',$uri);
                return true;
            }
        }
        return false;
    }
public function checkRoute($uri)
    {
        foreach($this->strings as $expression)
        {
            // check if it matches the pattern
            $this->regex->setPattern($expression);
            if($this->regex->getMatches($uri))
            {
                $this->matchedUriParts = explode('/',$uri);
                return true;
            }
        }
        return false;
    }
public function checkRoute ( $ uri ) { foreach ( $ this -> strings as $ expression ) { // check if it matches the pattern $ this -> regex -> setPattern ( $ expression ) ; if ( $ this -> regex -> getMatches ( $ uri ) ) { $ this -> matchedUriParts = explode ( '/' , $ uri ) ; return true ; } } return false ; }
checks t' see if th' uri matches the regex routes

@param $uri
@return bool
checks t see if th uri matches the regex routes