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

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

  

原文地址:https://www.cnblogs.com/petrolero/p/10068946.html