[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regular expressions and user-escaped characters
From: |
Joost Kremers |
Subject: |
Re: Regular expressions and user-escaped characters |
Date: |
Mon, 02 Dec 2024 23:50:39 +0100 |
User-agent: |
mu4e 1.12.7; emacs 29.4 |
On Mon, Dec 02 2024, Joost Kremers wrote:
> You may get away with something like "[^\\][[]", though keep in mind that
> that does not match a ?[ not preceded by a backslash, but rather a ?[
> preceded by a character that is not a backslash.
Mind you, what I forgot to mention: this means that a ?[ at the start of a
string won't be found. A possible solution to that might be to prepend some
character to the string before matching.
--
Joost Kremers
Life has its moments