I am trying to extract something with the regex:
Pattern logEntry = Pattern.compile("digraph Checker \\{(.*)\\}");
for the block of text:
{ /*uninterested in this*/
"
digraph Checker
{
/*bunch of stuff*/
{
/*bunch of stuff*/
}
{
/*bunch of stuff*/
}
{
/*bunch of stuff*/
}
/*bunch of stuff*/
} //first most curly brace ends, would want the regex to filter out till here, incl. the braces
"
}
and expect the output to be:
digraph Checker
{
/*bunch of stuff*/
{
/*bunch of stuff*/
}
{
/*bunch of stuff*/
}
{
/*bunch of stuff*/
}
/*bunch of stuff*/
}
but can't seem to get rid of the last
"
}
Is there a way that I could extract this?