我是这样写的:
if (Regex.IsMatch(TextBox_VehicleNo.Text.Trim(),@"^[<^$.|?*+()>\s]{1,5}$")){
Label1.BackColor=Color.Red;
Label1.Text="对不起!车牌号不能含有敏感字符!";
return;
}
/////////////////////
请问错在哪,该如何做才能做到判断字符中不含指定字符阿