actually,
https://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText is very confusing! It took me a lot of time to make any sense out of it for the special case like using <<< and after my own tests, I have failed to see that as useful.
Your code is actual code and it would be good to use it rather than the current example.
I was sure you coded <arg> instead of <__arg__> and I had copied it and executed. It was not functioning as it should. But I can no more remember why: was it the problem I told about why regexp was better or was it that it did nothing?
Anyway, thank you for your correction about what I told. I have yet again something about tiddlywiki today! And I could use it, definitely.