java中利用正则表达式获取a标签

// 设置新闻内容
			notice.setContent(editorValue);
			Matcher m = Pattern.compile("<a[^>]*>([^<]*)</a>").matcher(editorValue);
			while (m.find()) {
				String filepath = m.group(1);
				notice.setFilepath(filepath);
			}

  

posted @ 2018-12-05 08:39  petrolero  阅读(4286)  评论(0)    收藏  举报