摘要: public bool IsNum(string Str) { string Rx = @"^[1-9]\d*$"; if (Regex.IsMatch(Str, Rx)) { return true; } ... 阅读全文
posted @ 2016-05-08 10:35 文洁丫头 阅读(201) 评论(0) 推荐(0) 编辑
摘要: public bool IsHttpUrl(string Value) { if ((Value.Substring(0, 7) == "http://") || (Value.Substring(0, 8) == "https://")) return true; return fa... 阅读全文
posted @ 2016-05-08 10:34 文洁丫头 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: public bool IsMobilePhone(string input) { Regex regex = new Regex("^13\\d{9}$"); return regex.IsMatch(input); } 阅读全文
posted @ 2016-05-08 10:33 文洁丫头 阅读(788) 评论(0) 推荐(0) 编辑
摘要: public bool IsPhone(string input) { string pattern = "^\\(0\\d{2}\\)[- ]?\\d{8}$|^0\\d{2}[- ]?\\d{8}$|^\\(0\\d{3}\\)[- ]?\\d{7}$|^0\\d{3}[- ]?\\d{7}$"; Regex ... 阅读全文
posted @ 2016-05-08 10:32 文洁丫头 阅读(226) 评论(0) 推荐(0) 编辑
摘要: public bool IsAllChineseCh(string input) { Regex regex = new Regex("^[\u4e00-\u9fa5]+$"); return regex.IsMatch(input); } 阅读全文
posted @ 2016-05-08 10:31 文洁丫头 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 生成类似 LS14120002 private String GenNewOrder() { String newOrder; var orders = LYOrder.Items; String lastOrder = ((Order)orders[orders.Count - 1]).Ord... 阅读全文
posted @ 2016-05-08 10:12 文洁丫头 阅读(990) 评论(0) 推荐(0) 编辑