emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing ill-conditioned regular expressions. Proof of concept.


From: Stefan Monnier
Subject: Re: Fixing ill-conditioned regular expressions. Proof of concept.
Date: Fri, 27 Feb 2015 08:45:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> I really did mean R*\(\)R*, with R being the same on both sides of the
> \(\), but the *s possibly being +s.

Ah, well R*<E>R* where <E> can match the empty string is definitely
nasty given the current implementation technique of our regexp
matcher, yes.
It's not specific to \(\), OTOH.

> _That_ is nasty and undefined.

Well, it's actually defined (by the "leftmost longest" rule), but
I agree it's a nasty case.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]