I need to get the following information from an xml file:
"abridged_cast": [
{
"name": "Tom Hanks",
"characters": ["Woody"]
},
{
"name": "Tim Allen",
"characters": ["Buzz Lightyear"]
},
{
"name": "Joan Cusack",
"characters": ["Jessie the Cowgirl"]
},
{
"name": "Don Rickles",
"characters": ["Mr. Potato Head"]
},
{
"name": "Wallace Shawn",
"characters": ["Rex"]
}
],
So far I have been able to cut it to:
"abridged_cast": [
{
"name": "Tom Hanks",
"characters": ["Woody"]
The above is obtained using this regex:
\"abridged_cast\": \\[([^]]+)\\]
I need the regex to extend to the bottom ], but I can't seem to get it to work. I have tried a huge number of variations with no luck.