Jason> Can anyone come up with a better way of performing these Jason> operations? Extra kudos if it easily extends to any sublength Jason> and not just pairs. >>> import re >>> re.findall('..', 'aabbccddee') ['ab', 'cd', 'ef'] -- Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark