I would like to parse between {
and },
. I searched and already tried many solutions from stackoverflow but not all seems to be working.
The best solution worked for me is Extracting all values between curly braces regex php but it fails when there are nested curly braces. I tried {\K[^}]*(?=},)
eg: Id: 1181 doesn't match.
Sample Data
{
Id: 1180
Name: "ABCD"
Type: 1
Json: <"
Some sample data
">
},
{
Id: 1181
Name: "EFGH"
Type: 4
More: Value
More: Value
Json: <"
Some sample data "{ with more curly braces }" and "{ more curly braces }";
">
},
{
Id: 1182
Name: "IJKL"
Type: 2
Json: <"
Some sample data
">
},