regexp-replace should support procedures as substitution Duy Nguyen 28 Jul 2019 01:32 UTC

I'm surprised the SRFI does not accept procedures as substitution.
Without it (and the old "embedding \<digit> in a string")
regexp-replace could only be used for very simple cases. Beyond that
you may need to roll your own.

It's probably just an oversight of the document. I've checked Chibi
code, the initial implementation in 2013 already supported procedures
as substitution.
--
Duy