求正则表达式[除了A-Z,a-z,0-9,=,:,*这些字符外、其他全部过滤掉] 正则对我来说就是乱码、现在遇到这个问题时间紧迫、还请大侠指点一二。除了 a-z A-Z 0-9 : = * 这些之外的字符全部过滤掉。谢谢正则表达式 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string str = @"a-z 啊A-Z吧 0-9 : = * "; string strmatch = @"(?is)[^a-z0-9\:\=\*]"; System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(strmatch); strmatch = reg.Replace(str, ""); 关于内外网同时可以访问一个WCF服务。 关于编程思想 access查询1天时间段内的数据 如何等待一段時間再發送警報 轮盘赌选择 为什么会找不到HttpContext? 一个非常Easy的问题,请各位帮帮忙 怎样遍历ListView里面的所有节点 急急急,在线等,C#如何调用Label Matrix软件打印条形码 怎么返回两个日期之间的月份? 使用 WindowsImpersonationContext 的困惑 WinForm技术的反射
string str = @"a-z 啊A-Z吧 0-9 : = * ";
string strmatch = @"(?is)[^a-z0-9\:\=\*]";
System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex(strmatch);
strmatch = reg.Replace(str, "");