Quoting of parentheses in regular expressions
I'm trying to set up a save-hook to save mails with a certain subject
to a particular folder.
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
save-hook '~s "RC(ci): [string]"' =bla
save-hook '~s "RC\(ci\): \[string\]"' =bla
save-hook '~s "RC'('ci')': '['string']'"' =bla
save-hook '~s "RC'\('ci'\)': '\['string'\]'"' =bla
will work. The only version that will work for me is
save-hook '~s "RC.ci.: .string."' =bla
and it's less than satisfactory. Should I file a bug report for this?
In any case, the correct syntax is not obvious - the second option above
is the one that should work according to common sense ;)
---------------------------------------------------------------
This message and any attachments may contain Cypress (or its
subsidiaries) confidential information. If it has been received
in error, please advise the sender and immediately delete this
message.
---------------------------------------------------------------