private function getParsingMode(string &$route) : int
    {
        // Explicit regex mode
        if (strpos($route, 'R>') === 0) {
            $route = str_replace('R>', '', $route);
            return self::MODE_REGEX;
        }
        // Explicit string mode
        if (strpos($route, 'S>') === 0) {
            $route = str_replace('S>', '', $route);
            return self::MODE_STRING;
        }

        // Use default mode
        return self::$mode;
    }