fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Example
  5. {
  6. public static void Main()
  7. {
  8. string pattern = @"\bbbb.*\r?\n(.*)";
  9. string input = @"aaa111
  10. bbb222
  11. ccc333
  12. ddd444";
  13.  
  14. foreach (Match m in Regex.Matches(input, pattern)) {
  15. Console.WriteLine(m.Groups[1]);
  16. }
  17. }
  18. }
  19.  
Success #stdin #stdout 0.07s 27532KB
stdin
Standard input is empty
stdout
ccc333