Hack Forums
[.NET] Parsing Json with Regex (continued..) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Parsing Json with Regex (continued..) (/showthread.php?tid=2903107)



Parsing Json with Regex (continued..) - ~Acid - Sep 29, 2012

earlier I needed help parsing JSON and a few kind members taught me to use

Quote:Dim s1 As String = Regex.Match(theusercpBUY, "(?<=""tradeId"":)\d+").Value

to get the trade id from the json response.

But what if I wanted to get multiple trade id's out the same json and put them into a listbox? then load them out the listbox. help? :D


* - Pussy Cat - Sep 29, 2012

(Sep 29, 2012 03:36 PM)[ d0n ] Wrote:  earlier I needed help parsing JSON and a few kind members taught me to use

to get the trade id from the json response.

But what if I wanted to get multiple trade id's out the same json and put them into a listbox? then load them out the listbox. help? :D

Use .Matches instead of .Match to get multiple matches instead of just one.