Elisp: Convert Regex to Lisp Regex String
Convert Regex to Regex String
There is a easy way to get the backslashes right.
- First, Alt+x
list-matching-lines
and enter a regex. - Then, do Alt+x
repeat-complex-command
.
The elisp string regex syntax will be shown in minibuffer. (with all correct backslashes if needed)
Elisp, Regex in Lisp Code
- Elisp: Regular Expression
- Elisp: Regex Functions
- Emacs: Regular Expression Syntax
- 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: Regex in Readable Syntax, Package Rx
- Elisp: Regex Named Character Class and Syntax Table
- Emacs Regex vs Regex in Python, JavaScript, Java