fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text.RegularExpressions;
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. string quote = "Underground; round; unstable; unique; queue";
  12. Regex negativeViewBackward = new Regex(@"\b(?!un)\w+\b", RegexOptions.IgnoreCase);
  13. List<string> result = negativeViewBackward.Matches(quote).Cast<Match>().Select(x => x.Value).ToList();
  14. foreach (var s in result)
  15. Console.WriteLine(s);
  16. }
  17. }
Success #stdin #stdout 0.08s 20504KB
stdin
Standard input is empty
stdout
round
queue