How to display all the values that are suitable after the regular expression. The variable contains these values.
[ {"symbol":"ETHBTC","price":"0.03416500"}, {"symbol":"LTCBTC","price":"0.01672200"}, {"symbol":"BNBBTC","price":"0.00349860"}, {"symbol":"NEOBTC","price":"0.00238600"}, {"symbol":"QTUMETH","price":"0.01870700"}, {"symbol":"EOSETH","price":"0.03303200"}, {"symbol":"SNTETH","price":"0.00015567"}, ] The code is:
Regex regex = new Regex(@"(?<=\{).*?(?=})"); Match match = regex.Match(str); System.IO.File.WriteAllText("C:\\Users\\gamen\\source\\repos\\WindowsFormsApp3\\WindowsFormsApp3\\questionAnswers.txt", $"{str}"); How to output all values (results) line by line into a text document after regular processing?


$"{str}") - Kir_Antipov