文章分类 -  正则表达式

摘要:1、原字符串, 2、替换,以,CoefficientConfig开头和}结尾的字符串 3、去除所有的HTML标签 阅读全文
posted @ 2018-01-03 17:51 wjl910 阅读(109) 评论(0) 推荐(0)
摘要:string _s= Regex.Replace(_s, @"[\u4e00-\u9fa5]", ""); //去除汉字string _s= Regex.Replace(_s, @"[^\u4e00-\u9fa5]", ""); //只留汉字string ph = Regex.Replace(ph, 阅读全文
posted @ 2017-08-22 18:25 wjl910 阅读(60) 评论(0) 推荐(0)
摘要:转http://www.cnblogs.com/China3S/archive/2013/11/30/3451971.html 一 前言 对于正则表达式,相信很多人都知道,但是很多人的第一感觉就是难学,因为看第一眼时,觉得完全没有规律可寻,而且全是一堆各种各样的特殊符号,完全不知所云。 其实只是对正 阅读全文
posted @ 2017-08-15 14:06 wjl910 阅读(101) 评论(0) 推荐(0)
摘要:1、xml字符串,包括换行、空格等等 2、Regex正则: 3、匹配得到的结果 4、类 阅读全文
posted @ 2017-04-20 18:08 wjl910 阅读(1731) 评论(0) 推荐(0)
摘要:[HttpPost] public JsonResult DocumentList(DocumentQueryRequest request) { var result = PayProvider.DocumentService.DocumentList(request); Regex regexCard = n... 阅读全文
posted @ 2017-04-10 10:43 wjl910 阅读(205) 评论(0) 推荐(0)
摘要:前端方法 webapi方法 提供2中后台方法 对html正则表达式 阅读全文
posted @ 2016-07-19 13:32 wjl910 阅读(73) 评论(0) 推荐(0)
摘要:前端调用 阅读全文
posted @ 2016-07-14 09:47 wjl910 阅读(126) 评论(0) 推荐(0)
摘要:http://www.jb51.net/tools/zhengze.html 指定表达式的组名:(?<Word>\w+),这样就把\w+的组名指定为Word了 匹配exp,并捕获文本到名称为name的组里,(?<name>exp) 设置webapi,部署在IIS上 客户端调用webapi接口 阅读全文
posted @ 2016-07-11 19:31 wjl910 阅读(121) 评论(0) 推荐(0)