fork download
  1.  
  2. using System;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string str = "abc=0;def=2;abc=1;ghi=4;jkl=2";
  10. Regex rgx = new Regex(@"(?<=abc=)\d+");
  11. foreach (Match m in rgx.Matches(str))
  12. Console.WriteLine(m.Value);
  13. }
  14. }
Success #stdin #stdout 0.07s 34016KB
stdin
Standard input is empty
stdout
0
1