views:

53

answers:

0

Hi,

I have a string like this:

"(list:\"RTM API\" status:completed)"

And I want to convert it into a NSDictionary with the "value" before the colon as the key and the value left of the colon as the value - like this:

list: "RTM API"
status: "completed"

It can probably be done using a simple regex or so, but I don't really know how to do that. I hope someone can explain a way to do this.

Thanks in advance.