I have lines of the form {},{},{},...,{}
. The number of curly pairs is variable. I would like to have the content between the curlies in a list of strings.
Example:
Input: {a:b,c:d}
Output: ['a:b,c:d']
Input: {a:b,c:d},{e:f,g:h}
Output: ['a:b,c:d', 'e:f,g:h']
What is the best way to do that?