摘要:
public bool IsNum(string Str) { string Rx = @"^[1-9]\d*$"; if (Regex.IsMatch(Str, Rx)) { return true; } ... 阅读全文
摘要:
public bool IsHttpUrl(string Value) { if ((Value.Substring(0, 7) == "http://") || (Value.Substring(0, 8) == "https://")) return true; return fa... 阅读全文
摘要:
public bool IsMobilePhone(string input) { Regex regex = new Regex("^13\\d{9}$"); return regex.IsMatch(input); } 阅读全文
摘要:
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 ... 阅读全文
摘要:
public bool IsAllChineseCh(string input) { Regex regex = new Regex("^[\u4e00-\u9fa5]+$"); return regex.IsMatch(input); } 阅读全文
摘要:
生成类似 LS14120002 private String GenNewOrder() { String newOrder; var orders = LYOrder.Items; String lastOrder = ((Order)orders[orders.Count - 1]).Ord... 阅读全文