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.
Emacs Lisp, 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: Tip: 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