C# 使用正则表达式去掉字符串中的数字,或者去掉字符串中的非数字
摘要:
/// 去掉字符串中的数字 public static string RemoveNumber(string key) { return Regex.Replace(key, @"\d", ""); } //去掉字符串中的非数字public static string RemoveNotNumber 阅读全文
posted @ 2016-04-07 23:21 大西瓜3721 阅读(751) 评论(0) 推荐(0)
浙公网安备 33010602011771号