var match = Regex.Match(GetActiveWindowTitle(), "(?i)ab.*?");
var match2 = Regex.Match(GetActiveWindowTitle(), "(?i)bc.*?");
var match3 = Regex.Match(GetActiveWindowTitle(), "(?i)de.*?");
var match4 = Regex.Match(GetActiveWindowTitle(), "(?i)ef.*?");
var match5= Regex.Match(GetActiveWindowTitle(), "(?i)gh.*?");
var match6= Regex.Match(GetActiveWindowTitle(), "(?i)ij.*?");
var match7 = Regex.Match(GetActiveWindowTitle(), "(?i)kl.*?");
if (match4.Success || match.Success || match2.Success || match3.Success etc....)
{
MessageBox.Show("Sucess");
}
どうすればもっと短くできますか?多くの一致を再グループ化する正規表現クラス関数はありますか?