歡迎大家在這裡學習正則html標簽!下面是我們給大家整理出來的精彩內容。希望大家在這裡學習!
如果是提取標簽內的話這麼寫:
Pattern pattern = Pattern.compile(
">([^<]+)<"
);
Matcher macher =
pattern.matcher("<p><strong>Rufus</strong>Dan,
Jenny! Over here!
</p><p><strong>Jenny</strong>Hey, dad!