fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. namespace teste
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9.  
  10. string[] itens = { "exemplo1", "\r", "exemplo3", "exemplo4", "\r", "\r\r\r\r", "exemplo7", "exemplo8" };
  11. Regex r = new Regex(@"\r",RegexOptions.IgnoreCase);
  12. foreach (string e in itens)
  13. if(!r.IsMatch(e))
  14. Console.WriteLine(e);
  15. }
  16. }
  17. }
Success #stdin #stdout 0.06s 24528KB
stdin
Standard input is empty
stdout
exemplo1
exemplo3
exemplo4
exemplo7
exemplo8