shrug-harrisonburg/NYC-Hacker-Olympics — pull request #1 by knabar (2012-02-08 17:08:45+00:00)
Title: Python regular expression-based solution

This very short solution uses a look-ahead regular expression to find the first pair in the string and replace all subsequent occurrences (the look-ahead guarantees that the comparison only happens within pair boundaries). If nothing was replaced, a target pair was found and is converted and printed.