On 01/21/2016 04:39 AM, Alexis wrote: > More generally, i highly recommend Jeffrey Friedl's book "Mastering > Regular Expressions". It's not Emacs-specific, but it provides > in-depth explanations of why certain regexen are time- and/or > space-hungry. Thanks for the suggestion. I think I do need something Emacs-specific, however: Python's regexp engine has no trouble at all with the example provided; neither does grep's.