标签: c# regex
假设我们有字符串“ Ver2.1 BSI; Ver2.1 BSIHUD” ,并希望检查 BSI 和 HUD 。 我尝试过:
if (Regex.IsMatch(input_string, Regex.Escape("BSI.?HUD"), RegexOptions.IgnoreCase)) {/*remove expression from input string*/}
并希望收到 BSIHUD,BSI HUD,BSI-HUD 的 true