using System;
using System.Text.RegularExpressions;
namespace teste
{
class Program
{
static void Main(string[] args)
{
string[] itens = { "exemplo1", "\r", "exemplo3", "exemplo4", "\r", "\r\r\r\r", "exemplo7", "exemplo8" };
Regex r = new Regex(@"\r",RegexOptions.IgnoreCase);
foreach (string e in itens)
if(!r.IsMatch(e))
Console.WriteLine(e);
}
}
}
ICAgICAgICAgICAgdXNpbmcgU3lzdGVtOwogICAgICAgICAgICB1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CiAgICAgICAgICAgIG5hbWVzcGFjZSB0ZXN0ZQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBjbGFzcyBQcm9ncmFtCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgICAgICAgICAgICAgIHsKCiAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZ1tdIGl0ZW5zID0geyAiZXhlbXBsbzEiLCAiXHIiLCAiZXhlbXBsbzMiLCAiZXhlbXBsbzQiLCAiXHIiLCAiXHJcclxyXHIiLCAiZXhlbXBsbzciLCAiZXhlbXBsbzgiIH07CiAgICAgICAgICAgICAgICAgICAgICAgIFJlZ2V4IHIgPSBuZXcgUmVnZXgoQCJcciIsUmVnZXhPcHRpb25zLklnbm9yZUNhc2UpOwogICAgICAgICAgICAgICAgICAgICAgICBmb3JlYWNoIChzdHJpbmcgZSBpbiBpdGVucykKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmKCFyLklzTWF0Y2goZSkpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoZSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9