码迷,mamicode.com
首页 > 其他好文 > 详细

正则表达式

时间:2016-06-05 10:59:40      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

 

	/**
	 * 把文本里面<img 开头 >结尾的切割掉
	 * @param text
	 * @return
	 */
	public static String cutOutPrefixImg(String text){

		String regex = "<img[^>]*>";

		return text.replaceAll(regex, "");
	}

  

 

正则表达式

标签:

原文地址:http://www.cnblogs.com/wikiki/p/5560264.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!