fork(3) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. class Program
  5. {
  6. static void Main()
  7. {
  8. string s = "the quick brown fox jumps over the lazy dog";
  9. string[] words = Regex.Split(s, "(?<=\\bthe) ");
  10. foreach (string word in words)
  11. {
  12. Console.WriteLine(word);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 34208KB
stdin
Standard input is empty
stdout
the
quick brown fox jumps over the
lazy dog