云在青天部落阁

独学而无友,则孤陋而寡闻。做一个灵魂有趣的人!
扩大
缩小

2019年8月15日

C#字符串处理之分割字符串并保留分隔符的几种方法

摘要: 目录 [方法一] string[] parts = Regex.Split(originalString, @"(? SplitAndKeep(this string s, char[] delims) { int start = 0, index; while ((index = s.IndexO 阅读全文

posted @ 2019-08-15 21:24 NoMatterTryAgain 阅读(1881) 评论(0) 推荐(0)

C#字符串处理之清除Html&XML标签

摘要: /// ///去除html标签 ///思路:用正则匹配到html标签,然后replace即可 /// /// /// /// public static string ContentReplace(string input) { input = Regex.Replace(input, @"] ) 阅读全文

posted @ 2019-08-15 21:18 NoMatterTryAgain 阅读(507) 评论(0) 推荐(0)

正则表达式

摘要: 学习网站:http://deerchao.net/tutorials/regex/regex.htm 工具:https://regexr.com/4j9am 深入了解平衡组:https://blog.csdn.net/lxcnn/article/details/4402808 comments 正则 阅读全文

posted @ 2019-08-15 19:21 NoMatterTryAgain 阅读(175) 评论(0) 推荐(0)

导航