0

I want to extract numbers from the following string de number of digits can verry.

{"idProveedors":["63","63333","3"]}

Here is my inital code I tried many diffrent pattern but none seem to work

        string pattern = @"";

        Match m = Regex.Match(input, pattern, RegexOptions.IgnoreCase);

What pattern should I use to extract the digit I put them in a list of string in c# thank you for your help

J.C
  • 632
  • 1
  • 10
  • 41
  • 1
    This should get you the list of ints... `List numbers = JObject.Parse(stringJson)["idProveedors"].ToObject>();` – Jawad Jun 03 '20 at 19:27
  • Thank you very much @Jawad it works it is exactly what I wanted. – J.C Jun 03 '20 at 19:35

0 Answers0