in reply to Re: Parsing spaces and curly braces
in thread Parsing spaces and curly braces

You probably want a real parser.

That's really only necessary if the braces can be nested. If not, a regular expression can handle it, as for example in the above-posted solution.