小文字または大文字のテキストを検索する必要があります (正規表現を使用) 私のコード:
static void Main(string[] args)
{
String s = "String : hello Hello HELLO hEllo ";
String patern = @"(hello)";
Regex myRegex = new Regex(patern);
foreach (Match regex in myRegex.Matches(s)) {
Console.WriteLine(regex.Value.ToString());
}
}
その結果:
hello
結果が必要です
hello
Hello
HELLO
hEllo
手伝って頂けますか?