Emacs: Regex Backslash in Command Prompt

By Xah Lee. Date: . Last updated: .

Regex in Emacs Command's Prompt

In emacs command's prompt, regex is not a string. Do not type the the string quote.

But because it is not a string, it does not understand string syntax such as \n for newline. You must use a literal newline or tab.

Emacs, Regular Expression in Interactive Commands