Could someone explain to me why this doesn't do what it clearly is intended to do. Here's the simplest piece of code to demonstrate the problem:
It is intended to replace the leading digits of each line in some text or variable with a formatted version of the date corresponding to the leading number in each line.
The problem seems to be that it's not placing the value of $1 inside the ICUDateTimeFor token. It seems to be returning an empty string for $1 when used inside this token. I can place variables inside that token, and I can place $1 outside that token, but I can't place $1 inside that token.
The following page says that $1 and \1 can be used inside the %Calculate% token, so shouldn't they also be usable inside other tokens like %ICUDateTimeFor%? Why do some tokens work with $1 but others not?
I'm absolutely gobsmacked. You did it. I had read that wiki page several times but clearly I didn't understand parts of it. You have exceeded even my own expectations for your own genius, which is already very high.