I need to parse a log file and get the times and associated function call string This is stored in the log file as so: {\"time\" : \"2012-09-24T03:08:50\", \"message\" : \"C
you need to escape '{' & '}' with a '\'
so: "{(.*?)}" becomes: "\\{(.*?)\\}"
"{(.*?)}"
"\\{(.*?)\\}"
where you have to escape the '\' with another '\' first
see: http://www.regular-expressions.info/reference.html for a comprehensive list of characters that need escaping...