- 正则表达式入门见下面的文章:
http://deerchao.net/tutorials/regex/regex-1.htm
- Java 中的 replaceAll() 里面使用正则表达式,要注意 \ 的表示方法,见下
http://www.cnblogs.com/xiohao/p/5271401.html
- 实际例子如下:
result = result.replaceAll("(http|https)://(www.)?(\\w+(\\.)?)+","");
http://www.cnblogs.com/xudong-bupt/p/3586889.html