fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text.RegularExpressions;
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. var input = "\\\"26201\\\",7\\0\\0";
  12. var firstPattern = @"(?<=\\"")[0-9]+(?=\\"")";
  13. var resultfinal = Regex.Match(input, firstPattern)?.Value;
  14. Console.WriteLine($"final result: '{resultfinal}'");
  15. }
  16. }
Success #stdin #stdout 0.08s 21020KB
stdin
Standard input is empty
stdout
final result: '26201'