Kevin J. McCarthy (2026/03/29 20:44 +0800): > Yes, at http://www.mutt.org/doc/manual/#regexp see the sentence: > The period “.” matches any single character. The caret “^” and the > dollar sign “$” are metacharacters that respectively match the empty > string at the beginning and end of a line.
I apologize for having missed that, Kevin. I read in braille and I tried to be quick, but that has made my reading unefficient. Sorry. > From a "shell quoting" point of view, single quotes make everything be > un-evaluated. But regular expressions are an additional layer of > complexity, evaluated after the string is processed by mutt. > > > So we agree that, for isntance int he example you show, the quotes are > > not at all optional and that, although they are there, the special > > characters occurring in regular expresisons between these quotes do need > > to be escaped to get back their ordinary meaning? > > Without the single quotes, it gets trickier, because you have two layers to > go through. I definitely recommend you use single quotes or you'll have to > double the backslashes. See the second example line at > http://www.mutt.org/doc/manual/#save-hook for what that looks like. You have definitely convinced me! Thanks!
