110,549
社区成员
发帖
与我相关
我的任务
分享
bool b = Regex.IsMatch(input, "[,;:/]"); //true 为包含
1.
bool b = Regex.IsMatch(input, "[,;:/]"); //true 为包含
2.
bool b = Regex.IsMatch(input, "^[^,;:/]+$"); //true 为不包含
1.
bool b = Regex.IsMatch(input, "[,;:/]"); //true 为包含
2.
bool b = Regex.IsMatch(input, "^[^,;:/]+$"); //true 为不包含