<<< Date Index >>>     <<< Thread Index >>>

Re: Quoting of parentheses in regular expressions



Hi,

* Lars Hecking wrote:

>  The subject line starts with "RC(ci): [string]". Problem is, I cannot get
>  any combination of "'\ to recognise the parentheses and square brackets
>  as non-special. E.g. neither of

I think you need to double-escape the brackets:

  save-hook '~s RC\\(ci\\):\ \\[string\\]' +foo

as upon parsing it, mutt strips one level of \.

Rocco

Attachment: pgptR9gIbjF0S.pgp
Description: PGP signature