Minkoo Seo wrote: > Sorry for newbie question. Given the line like > > node: { title: "15597629" label: "up[0,18 p:-2270.125]" } > > How can I parse the above string into "15597629" and "up[0,18 > p:-2270.125]"? There are numbers in the first "..." and a-z, :, [, and > ] in the second "..." part. > >> str = 'node: { title: "15597629" label: "up[0,18 p:-2270.125]" }' >> node = YAML.load( str.sub(/"[^"]+"/, '\0,') ) >> node['title'] => "15597629" >> node['label'] => "up[0,18 p:-2270.125]" I don't know if it's helpful, but it's at least kind of striking. _why