Elisp: Regex in Readable Syntax, Package Rx
Regex in Lisp Syntax: rx Package
There is a elisp package rx that uses lisp style syntax to represent regex.
(require 'rx) ;; this (rx (one-or-more blank) line-end) ;; returns this ;; "[[:blank:]]+$"
I do not recommend it. Because it's a middleman with associated complexity. Just learn and use raw regex directly.
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