emacs-devel
[Top][All Lists]
Advanced

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

Re: Progressively slow pattern match


From: David Kastrup
Subject: Re: Progressively slow pattern match
Date: Wed, 17 May 2006 22:04:20 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * 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

"\\(%[% \t]*\\)foo"

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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