trying to check starting string with reghex

前端 未结 0 1140
你的背包
你的背包 2021-02-05 17:41

I have a string and it could start with ON or OFF

Regex ADRCheck = new Regex(Regex.Escape(@"^ON|^OFF"));

ADRCheck.IsMatch("ON");

return

相关标签:
回答
  • 消灭零回复
提交回复
热议问题