original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: checks t' see if th' uri matches the regex routes
  
  @param $uri
  @return bool
docstring_tokens: checks t see if th uri matches the regex routes