I am using regexkitlite
to validate some data in my iPhone app in xcode.
I am making an api call that sends a json result of:
"taskDate": newDate("September 23, 2011 00:00:00")
how do i use regex to convert it to:
"taskDate": "newDate("September 23, 2011 00:00:00")"
I want to surround the value of every "taskdate" key with quotes.
Edit: Adding OP's comment
Here is what i am using:
[resultString replaceOccurrencesOfRegex:@"new Date((.*?)\")," withString:@"\"\"," range:NSMakeRange(0, [resultString length])];
where resultString is the string containing the "new Date(...."