I'm currently using the below regex:
/{{([^}]+)}}/g
This does well at matching all text in a string that are wrapped in double curly brackets, but there's a problem when the text is wrapped in triple curly brackets.
In this case, it matches the first three curly brackets, but not the last one.
I'd essentially like a regex that matches text only wrapped in double curly brackets.
So the bold text below would need to be matched.
{{{Text}}}