On Mon, Oct 29, 2018 at 05:16:11PM +0000, MRAB wrote: > > Logically it should not because > > > > >s'::15>>$ > > > > does not match > > > > ::\d*>>$ > > > > but I am not sure how to tell it that :-) > > > For something like that, I'd use parsing by recursive descent. > > It might be worth looking at pyparsing.
I feared as much. However, by slightly changing the boundary conditions I was able to solve the problem :-) Now I am only left with the task to search-replace a bunch of LaTeX templates during the next database upgrade ... Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list