I have a regex to find string without curly braces “([^\{\}]+)”. So that it can extract “cde” from follwing string:
“ab{cde}f”
Now I need to escape “{” with “\{” and “}” with “\}”.
So if my original string is “ab{cd\{e\}}f” then I need to extract “cd{e}” or “cd\{e\}” (I can remove “\” later).
Thanks in advance.
This should work: