import re


def get_nb_query_params(nb_url_search: str) -> dict:
    """
    Get the url query parameters from the search string.

    Arguments:
        nb_url_search {str} -- The URL search string

    Returns:
        dictionary of the query string parameters.

    """
    nb_params = {}
    query_string_match = re.search(r'\?(?P<qs>[^#]+)#?', nb_url_search)
    if query_string_match:
        for param in query_string_match['qs'].split('&'):
            if '=' in param:
                nb_params[param.split('=')[0]] = param.split('=')[1]
    return nb_params