I got regex matching everything in { }
brackets, but I want to reverse it, so it does match anything, except text inside { }
.
My regex now:
/{.*?}/g
- text: Blah blah { hello } world { 1010 }.
- matched:
["{ hello }", "{ 1010 }"]
What I need:
- text: Blah blah { hello } world { 1010 }.
- matched:
["Blah blah ", " world "]
Thanks for every suggestion. :)