help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: efficient regular expression that never matches


From: John Wiegley
Subject: Re: efficient regular expression that never matches
Date: Fri, 20 Nov 2015 07:59:39 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

>>>>> Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I'm thinking of "$a", but it should scan all the string until end of the
>> string, so it may not be efficient.

> IIRC I used something like "\\`\\'a".

Yes, also because "$" only has special meaning as the last character of the
regexp, whereas \\' should always mean "end of <context>".

John



reply via email to

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