public static function stripAttributes($routeString, &$route, $withParameters = true)
    {
        $route['query'] = [];
        $route['fragment'] = '';
        $route['parameters'] = [];
        $regex = '/^(.*?)(?:\?([^?#]*))?(?:#([^#?]*))?$/';
        preg_match($regex, $routeString, $matches);
        if (isset($matches[2])) {
            parse_str($matches[2], $query);
            $route['query'] = $query;
        }
        if (isset($matches[3])) {
            $route['fragment'] = $matches[3];
        }
        if ($withParameters) {
            // TODO: implement
        }
        return $matches[1];
    }