'turns a comma seperated list of flags into the int value.'

def flagstr_to_flags(self, flag_str):

    COMBIND_FLAGS = 0
    split_flags = flag_str.split(u',')
    for flag in split_flags:
        COMBIND_FLAGS = (COMBIND_FLAGS | RegexpParse.FLAG_VALUES[flag.strip()])
    return COMBIND_FLAGS
