original_string: public function extractPathInfo($pathInfo)
      {
          if ($this->getRegex() === null) {
              return $pathInfo;
          }
  
          preg_match($this->getRegex(), $pathInfo, $matches);
  
          if (isset($matches[1])) {
              return $matches[1];
          } else {
              // Empty     then root node ("/" or "/edit)
              return "/";
          }
      }
code: public function extractPathInfo($pathInfo)
      {
          if ($this->getRegex() === null) {
              return $pathInfo;
          }
  
          preg_match($this->getRegex(), $pathInfo, $matches);
  
          if (isset($matches[1])) {
              return $matches[1];
          } else {
              // Empty     then root node ("/" or "/edit)
              return "/";
          }
      }
code_tokens: public function extractPathInfo ( $ pathInfo ) { if ( $ this -> getRegex ( ) === null ) { return $ pathInfo ; } preg_match ( $ this -> getRegex ( ) , $ pathInfo , $ matches ) ; if ( isset ( $ matches [ 1 ] ) ) { return $ matches [ 1 ] ; } else { // Empty     then root node ("/" or "/edit) return "/" ; } }
docstring: Extract page pathinfo
  Call isMatching before to be sure regex matches
  
  @param $pathInfo
  
  @return string
docstring_tokens: Extract page pathinfo Call isMatching before to be sure regex matches