Regular expression magic for the IPython Notebook