(string)
return allParameters
Parse parameters
Parse parameters
Parse parameters
def parseParams(string):
    """
    Parse parameters
    """
    all = params_re.findall(string)
    allParameters = []
    for tup in all:
        paramList = [tup[0]]  # tup looks like (name, valuesString)
        for pair in param_values_re.findall(tup[1]):
            # pair looks like ('', value) or (value, '')
            if pair[0] != '':
                paramList.append(pair[0])
            else:
                paramList.append(pair[1])
        allParameters.append(paramList)
    return allParameters
def parseParams ( string ) : all = params_re . findall ( string ) allParameters = [ ] for tup in all : paramList = [ tup [ 0 ] ] # tup looks like (name, valuesString) for pair in param_values_re . findall ( tup [ 1 ] ) : # pair looks like ('', value) or (value, '') if pair [ 0 ] != '' : paramList . append ( pair [ 0 ] ) else : paramList . append ( pair [ 1 ] ) allParameters . append ( paramList ) return allParameters