Finding text (and selecting) within a text field

This works a treat! Thanks for all your help!

Another tweak -- changing the regex so it does a "non-greedy match, up to (and not including) the occurrence of two consecutive } characters". I'm a rank regex amateur but, thanks to Google, this will now properly process clozures that contain one or more non-consecutive } characters such as

{{c1::here are } within } text}}

You may not use those characters now -- but you might in the future!

The changed regex action:

And the complete macro:
Anki Replacement Test v2.kmmacros (9.5 KB)

2 Likes