ipython/ipython — pull request #1972 by takluyver (2012-06-15 23:13:54+00:00)
Title: Fix completion of '%tim' in the Qt console

From discussion on #1944, this is my attempt at the same fix using regexes.

I'm not yet entirely happy with this - e.g. if you type `tim` without an escape sequence, it still gives you `%` as the common prefix of the matches. But I'm too tired to work it all out at the moment. Other eyes are welcome, or I'll pick it up in the morning.