For example, these would be valid patterns:
aabbbaabbcccbbbcccddd
aabcabcd
abcd
But these would not:
aaaaabbbbbccccaaaaadddd (goes straight from a to d)
aaaaaaaaaaabbbbbccc (does not reach d)
Can anyone think of a concise way of writing this regex? The ones I can think of are very long and awkward.
Gabriel
-- http://mail.python.org/mailman/listinfo/python-list