fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string findPattern = "(?<=(?:, |^)\").*?(?=\"(?:, |$))";
  8. string parametersText = "\"parameter1\", \"parameter2\", \"parameter3\"";
  9. MatchCollection mc = Regex.Matches(parametersText, findPattern);
  10. foreach (Match match in mc)
  11. {
  12. Console.WriteLine(match.Groups[0].Value);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.06s 33976KB
stdin
Standard input is empty
stdout
parameter1
parameter2
parameter3