Transform Exec python output

Trigger the rule from an update to your ‘source’ text Item, then apply your transforms in the rule to generate postUpdates for your target Items.
I know little about getting the regex right, though.