Global Search/Replace Using $tc(reg)$ - how to?

i have multiple instance of a pattern in a string. want to change all instances. seems to do only the first one.

how to do this? thanks

Never mind. Turns out it was greedy vs Reluctant quantifiers that was messing me up. Cheers!