C#常用字符格式判断
1. 是否是数字判断:
public static bool IsNumber( string strNumber) { Regex regex = new Regex( "[^0-9]" ); return !regex.IsMatch(strNumber); } |