I'm loosely following a handlebar pattern to replace instances of a {{copy}} expression inside a string.
Here are some example of strings/scenarios I'm trying to match:
{{copy}}some text, then {{copy}}, then some other other textsome {{copy 'default value here'}} here
Essentially {{copy}} can occur anywhere within a string, and can also include a default value which I also need to pluck out using regex.
I've tried the following which I thought would match, but am having no luck.
\b{{copy*}}\b