@abcdw While it's scriptable in lisp, the relevant part is the pattern language: nongnu.org/txr/txr-pattern-lan