With regular expression I want to detect text/string between starting and ending double curly braces and it should detect any inner curly braces along with text.
for example:
{{detect this {{and this as well}} text}} but text does not ends here so it should {{not detect this}}.
I have written this regexp
\{\{[\s\S]+\}\}
but this selects the whole string FROM {{detect this.... TO {{not detect this}}
Note: I am using python re for this