Given a string of the form "(a,{b:c,d:e,f:g},h})", I want to extract a,c,e,g,h from the string.
i.e. string will always contain 3 parameters, where 2nd parameter is of the form {b:c,d:e,f:g} i.e. it contains key value pairs and there can be any number of them. I want to extract all the values leaving behind keys.
Also I want to extract first and third parameter i.e. a and h in the above string.
I am trying to scan the string and extract on character by character bases but I am not able to do extract values from 2nd argument.
Is there any efficient method to do it may be using regular expressions ?