June 14th 2026 - Interesting Finds

Emacs rx for regular expressions

We can use the built in rx package for creating easy to read regexes.

Example:

(string-match (rx (repeat 3 digit)) "The password is 456")

This returns 16, the location of the 3 digits.