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
{} in regexp have special meaning, so they need to be escaped.
Usually escaping is achieved by preceeding the character to be escaped with a backslash. In a character class defined with square brackets, you shouldn't need to do this
So something like
Pattern.compile("\{[^{}]*\}");
Could be nearer to what you want to do