Java??????????html?????
???????????? ???????[ 2015/7/23 10:06:09 ] ??????????????????? ???????
?????????????????????html?????????????????????????????????????????????????
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TestReg {
static String reg = "<[a-zA-Z]+.*?>([sS]*?)</[a-zA-Z]*>";
public static void main(String[] args) {
// TODO Auto-generated method stub
String str = "<p></p><p> ??????Buffer??????java.nio????????????"
+ "??Щ????java.nio?????????????????С??????β?桶java NIO???鼮????????о?????????"
+ "?????????????????????????á?</p><p> ???Buffer????"
+ "????????????????????<p></p><p>????????????洢???????????????????????????????洢????????????????</p><p>"
+ "</p><p> Buffer???????</p><p> "
+ "<img src="http://photo.jfq24.com/image/bigger/blog/server/upload/2014-07/user_2/13711406446068247.png" "
+ "title="2014-07-27_1527.png"></p><p> <strong>?????????????</strong>"
+ "</p><p> 1.?????????????</p><p> "
+ "????(capacity)????????????????????????????????????????????????????????????????????????????</p>"
+ "<p> ???(limit): ?????????????????????д??????"
+ "???????????????????????????</p><p> λ??(position): "
+ "????????????д????????????λ????????????????get()??put()?????????</p><p> "
+ " ???(mark): ???????λ???????mark()???趨mark=position.????reset()?趨position=mark??"
+ "??????趨?????ж????(undefied)??</p><p> ???????????????????£?</p";
Pattern p = Pattern.compile(reg?? Pattern.MULTILINE);
str = str.replace(" "?? "");
Matcher m = p.matcher(str);
while(m.find()) {
String data = m.group(1).trim();
if(!"".equals(data)) {
System.out.println(data);
}
}
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11