Regex of HTML
来源:互联网 发布:知乎阅读 编辑:程序博客网 时间:2024/04/30 06:48
Regex regexHtmlComment = new Regex(@"<![^>]*>",RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Singleline);
Regex regexHtmlLink = new Regex(@"<a\b[^>]+>(?<l>.+?)<*/a>",RegexOptions.Compiled| RegexOptions.IgnoreCase | RegexOptions.Singleline);
Regex regexHtmlTag = new Regex(@"<[^>]*>",RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Singleline);
text =regexHtmlComment.Replace(text, " ");
text =regexHtmlLink.Replace(text, "${l}");
text =regexHtmlTag.Replace(text, " ");
0 0
- Regex of HTML
- The introduction of Regex
- Regex for HTML filtering
- Regex - C++11, 6 of n
- 【MongoDB】The Regex Expression query of MongoDB
- Regex - C++11, 6 of n
- The advance of JAVA -- Regex, Set(Day02)
- regex pattern in python for parsing html
- Regex
- Regex
- Regex
- Regex
- regex
- Regex
- regex
- Regex
- regex
- Regex
- LINUX 进程组 会话
- IOS开发学习第四章---使用更多的UI控件
- sencha touch 使用Ajax请求ashx后台
- Andorid--Volley(三)--自定义Request
- windows2003
- Regex of HTML
- JAVA中Action层, Service层 ,modle层 和 Dao层的功能区分
- GPIO pull High 原理
- Android获取的时间转为12小时制
- Java数据类型和MySql数据类型对应表
- LeetCode_42---Trapping Rain Water
- 淘宝的ip地址库
- Day6.文件读写
- int和NSInteger和long区别