#region Regular Expression
public string RegExpCode = "^[A-Za-z0-9]{1,30}$";
public string RegExpVIN = "^[A-Za-z0-9]{5,17}$";
public string RegExpCode50 = "^[A-Za-z0-9// //(//)//.//-/*//@]{2,50}$";
public string RegExpGernal = "^[a-zA-Z0-9// //(//)//.//,//、//。// //《//》//://;//“//”//,//,//。//、//(//)//!//¥//$//@//%//——//-/u4e00-/u9fa5]{1,30}$";
public string RegExpTelephone = "((//d{11})|^((//d{7,8})|(//d{4}|//d{3})-(//d{7,8})|(//d{4}|//d{3})-(//d{7,8})-(//d{4}|//d{3}|//d{2}|//d{1})|(//d{7,8})-(//d{4}|//d{3}|//d{2}|//d{1}))$)";
public string RegExpCurrency = "^//d+(//.//d+)?$";
public string RegExpRemark = "^[a-zA-Z0-9// //(//)//./*//(//)//,//、//。// //《//》//://;//“//”//,//-/u4e00-/u9fa5]{1,100}$";
public string RegExpInt = "^//d+$";
public string RegExpCredentialCode = "^[A-Za-z0-9//-//——//(//)]{15,20}$";
#endregion
-------------------------------
if (!Regex.IsMatch(txtVendorSalePrice.Text.Trim(), _app.RegExpCurrency))
{
MessageBox.Show("请录入格式为xxxx.xx的有效金额!", "厂商指导价", MessageBoxButton.OK);
return;
}