I'm A bit stuck with a regular expression. I have a string in the format
{% 'ello %} wor'ld {% te'st %}
and I want to escape only apostrophes that aren't between {% ... %}
tags, so the expected output is
{% 'ello %} wor"ld {% te'st %}
I know I can replace all of them just using the string replace
function, but I'm at a loss as to how to use regexs to just match those outside braces