Your answer was perfect! I guess I will have to catch up on some regular expressions!
In reply to Re^3: Permutation with repetitions by umeboshi in thread Permutation with repetitions by umeboshi