[Top][All Lists]

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

bug#20307: 25.0.50; (regexp-opt nil ...) returns ""

From: Stefan Monnier
Subject: bug#20307: 25.0.50; (regexp-opt nil ...) returns ""
Date: Sun, 12 Apr 2015 08:09:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> So something like "[b-a]" and "\([b-a]\)" or
> "[^[:unibyte:][:multibyte:]]" or something similarly contorted.

I can't remember which regexp I used last time I needed one like that,
but something like "\\`\\'a" has the advantage of being efficient (the
\` anchor at the start is detected by Emacs and prevents looking for
a match over the whole searched area).


reply via email to

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