随笔分类 -  正则表达式

摘要:private Set getCodes(String s) { Set resultSet = new HashSet(); Matcher matcher = codePattern.matcher(s); while (matcher.find()) { resultSet.add(matcher.group(... 阅读全文
posted @ 2018-05-11 09:41 zslm___ 阅读(1166) 评论(0) 推荐(0) 编辑
摘要:如 不要23,3434,要2 ^(\w|[\u4E00-\u9FFF]){2,4}(,(\w|[\u4E00-\u9FFF]){2,4})*$ 阅读全文
posted @ 2017-08-25 10:27 zslm___ 阅读(6785) 评论(0) 推荐(0) 编辑
摘要:System.Text.RegularExpressions.Regex ___rx = new System.Text.RegularExpressions.Regex(@"""url"":""(?<zip>.*?)""", System.Text.RegularExpressions.Regex 阅读全文
posted @ 2016-06-22 00:07 zslm___ 阅读(141) 评论(0) 推荐(0) 编辑
摘要:internal class Program { private static void Main(string[] args) { var content = Read(@"E:\workspace\日志\2016-06-21.LOG2016-06-21.LOG"); Regex reg3 = n 阅读全文
posted @ 2016-06-21 14:00 zslm___ 阅读(1134) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示