@matches = /(\{[^}]+\}|\S+)/g; [download]
In reply to Re: Parsing spaces and curly braces by Roy Johnson in thread Parsing spaces and curly braces by cochrasc