ELisp: Regex in Readable Syntax, Package Rx

By Xah Lee. Date: .

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