diff --git a/scripts/combinations.py b/scripts/combinations.py new file mode 100644 index 0000000000000000000000000000000000000000..8186da1ab9a65d7d42fee64f93350f57c2e5b77a --- /dev/null +++ b/scripts/combinations.py @@ -0,0 +1,8 @@ +import itertools +import re +l = ['A', 'S', 'U', 'T'] +mask = ''.join(reversed(l)) +for i in range(1,len(l)+1): + for comb in itertools.combinations(l, i): + reg = "[^%s]" % ''.join(comb) + print re.sub(reg,"-", mask)