I'm trying to make a php regex to extract multiple sections/conditions from one string... let me show you what I'm talking about; this is an excerpt from the total file contents (the real contents contain hundreds of these groupings):
part "C28"
{ type : "1AB010050093",
%cadtype : "1AB010050094",
shapeid : "2_1206",
descr : "4700.0000 pFarad 10.00 % 100.0 - VE5-VS3",
insclass : "CP6A,CP6B",
gentype : "RECT_032_016_006",
machine : "SMT",
%package : "080450E",
%_item_number: "508",
%_Term_Seq : "" }
part "C29"
{ type : "1AB008140029",
shapeid : "2_1206",
descr : "150.0000 pFarad 5.00 % 100.0 Volt NP0 CERAMIC CAPACITOR",
insclass : "CP6A,CP6B",
gentype : "RECT_032_016_006",
machine : "SMT",
%package : "080450E",
%_item_number: "3",
%_Term_Seq : "" }
As you can see, the data in the excerpt repeats twice. I need to search through the whole file and extract the following:
- string after the word "part" -- which would be "C28" or "C29"
- string after the "type" property -- which would be "1AB010050093" or "1AB008140029"
So, essentially, I need to get all the part references and associated types out of this file...and I'm not sure the best way to go about doing this.
Please let me know if more info is needed to help... thanks in advance!

json_decode.