I'm, looking for a regular expression that will match only when all curly braces properly match. Matching braces can be nested.
Ex. Matches
- Hello {0}{}
- Hello to the following {0}: {{Object1}}, {{Object2}}
- Test { {1} { {2} { {3} { {4}}}}}
Non-matches
- }{Hello {0}
- {{}Hello to the following {0}: {{Object1}}, {{Object2}}
- Test { {1} { {2} { {3} { {4}{}