2012年5月31日
摘要: /// <summary> /// 判断一个字符串是否为合法整数(不限制长度) /// </summary> /// <param name="s">字符串</param> /// <returns></returns> public static bool IsInteger(string s) { string pattern = @"^\d*$"; return Regex.IsMatch(s,pattern); ... 阅读全文
posted @ 2012-05-31 16:26 cw_volcano 阅读(6855) 评论(0) 推荐(0) 编辑