Emacs Lisp: Tip: Convert Regex to Lisp Regex String

By Xah Lee. Date: .

Use emacs to Convert Regex to Elisp Regex String

There is a easy way to get the backslashes right.

The elisp string regex syntax will be shown in minibuffer. (with all correct backslashes if needed)

elisp regex 2021-06-26 nbX78
Alt + x list-matching-lines , followed by Alt + x repeat-complex-command

Emacs Regular Expression

Regex in Emacs Lisp