fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string msg = @"""id"":""456138988365628440_103920"",""user""657852231654""";
  8. var reg = new Regex(@"""id"":""([0-9_]*)"",""user""", RegexOptions.IgnoreCase);
  9. var results = reg.Matches(msg);
  10. foreach (Match match in results)
  11. {
  12. Console.WriteLine(match.Groups[1].Value);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 34760KB
stdin
Standard input is empty
stdout
456138988365628440_103920