Exemplo n.º 1
0
def find_matching_cols():
    for word in RegCommon.permutations():
        for idx, col_test in enumerate(col_regex):
            if col_test.match(word):
                try:
                    RegCommon.col_matches[idx].append(word)
                except IndexError:
                    RegCommon.col_matches.append([])
Exemplo n.º 2
0
def find_matching_rows():
    for word in RegCommon.permutations():
        for idx, row_test in enumerate(row_regex):
            if row_test.match(word):
                try:
                    RegCommon.row_matches[idx].append(word)
                except IndexError:
                    RegCommon.row_matches.append([])