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