emacs-devel
[Top][All Lists]
Advanced

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

Re: Progressively slow pattern match


From: Ralf Angeli
Subject: Re: Progressively slow pattern match
Date: Wed, 17 May 2006 21:50:39 +0200

* David Kastrup (2006-05-17) writes:

> Ralf Angeli <address@hidden> writes:
>
>> (looking-at "\\(%+\\)*foo")
[...]
>> Is this a deficiency in Emacs?  Is there a way matching can be sped up
>> with this or maybe another, equivalent regexp?
>
> Uh, "\\(%+\\)?foo" maybe?

The original regexp looks something like
"\\(%+[ \t]*\\)*foo"
in order to match stuff like
%% %% %% foo

-- 
Ralf




reply via email to

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