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 "/";
        }
    }