I have little experience with parsing and was just wondering if anyone could give me some pointers on how to approach this.
The text file I will be parsing data from has it in this form:
Basically, the data I want to extract is the word(s) between the "h[" and "]h|r" and the number following "count". For example, in the first entry the extracted strings would be "15, Tigerseye" . From trying to research on google I heard about Regex but have never used it before. I know this can also be done without using Regex but rather just plain VB.Net code. Does anyone have any recommendations which avenue to take and maybe some possible sites with helpful info? Many thanks in advance.
The text file I will be parsing data from has it in this form:
Code:
[1] = {
["icon"] = "Interface\\Icons\\INV_Misc_Gem_Opal_03",
["count"] = 15,
["link"] = "|cff1eff00|Hitem:818:0:0:0|h[Tigerseye]|h|r",
},
[2] = {
["icon"] = "Interface\\Icons\\INV_Misc_Gem_Emerald_03",
["count"] = 9,
["link"] = "|cff1eff00|Hitem:774:0:0:0|h[Malachite]|h|r",
},
[3] = {
["icon"] = "Interface\\Icons\\INV_Misc_Gem_Emerald_02",
["count"] = 5,
["link"] = "|cff1eff00|Hitem:1206:0:0:0|h[Moss Agate]|h|r",
},
...
Basically, the data I want to extract is the word(s) between the "h[" and "]h|r" and the number following "count". For example, in the first entry the extracted strings would be "15, Tigerseye" . From trying to research on google I heard about Regex but have never used it before. I know this can also be done without using Regex but rather just plain VB.Net code. Does anyone have any recommendations which avenue to take and maybe some possible sites with helpful info? Many thanks in advance.