Emacs: Regex Backslash in Command Prompt
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.
- Match a literal dot. →
\. - Match a literal backslash. →
\\ - Match a literal asterisk. →
\* - Match a literal question mark. →
\? - Match a literal plus sign. →
\+ - Match a literal vertical line. →
\| - Match literal square brackets. →
\[something\] - Match literal parenthesis. →
(something)
emacs and elisp regex
- Emacs: Regular Expression
- Emacs: List Matching Lines
- Emacs: Regular Expression Syntax
- Emacs: Regex Backslash in Command Prompt
- Emacs: Case Sensitivity in Text Search Commands
- Emacs: Insert Tab or Newline
- Emacs: Wildcards vs Regular Expression
- Elisp: Regular Expression
- Elisp: Regex Functions
- Elisp: Regex Backslash in Lisp Code
- Elisp: Case Sensitivity (case-fold-search)
- Elisp: Find Replace Text in Buffer
- Elisp: Match Data (Regex Result)
- Elisp: Unicode Escape Sequence
- Elisp: Convert Regex to Lisp Regex String
- Elisp: How to Test Regex
- Elisp: Regular Expression in Lisp Syntax, Rx (Package)
- Elisp: Regex Named Character Class and Syntax Table
- Emacs Regex vs Regex in Python, JavaScript, Java