2013年9月4日

正则表达式删除字符串中 html 标签

摘要: 在Java中,我们知道String类型有public String replaceAll(String regex, String replacement) 函数,可以使用给定的 replacement 替换此字符串所有匹配给定的正则表达式的子字符串。例如:1 public class RegexTest {2 public static void main(String[] args) {3 String regex = "|&[a-zA-Z]{1,10};";4 String replacement = "小官仔 - 博客园";5 S... 阅读全文

posted @ 2013-09-04 22:16 梅山民 阅读(1921) 评论(0) 推荐(0) 编辑

导航