public class TestRegex {
public static void main(String[] args) {
String str = "<FONT face=黑体 color=#ff0000 size=6>,kdksk<FONT face=黑体 color=#ff0000 size=6>fkdakasldfk<FONT face=黑体 color=#ff0000 size=6>";
Pattern p = Pattern.compile("<FONT(.*?)>");
Matcher m = p.matcher(str);
while (m.find()) {
System.out.println(m.group());
}
}
}
TestRegex code
最新推荐文章于 2023-12-11 12:41:47 发布