fork download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var s = "\"specific-anything-id\" <specific-anything-id> specific-\"anything\"-id";
  10. var matches = Regex.Matches(s, @"""specific[^""]*id""");
  11. foreach (Match m in matches)
  12. Console.WriteLine(m.Value);
  13. }
  14. }
Success #stdin #stdout 0.02s 30072KB
stdin
Standard input is empty
stdout
"specific-anything-id"