ww.dotdy.com/
@H_404_16@
@H_404_16@
@H_404_16@
伦理片http://www.dotdy.com/
@H_404_16@
- publicstaticvoidmain(String[]args){
- Stringstr=readFile(newFile("D:\\workspace\\izbra_front\\WebRoot\\aa\\aa.java"));
- //先过滤script标签
- Stringreg_tag="<[\\s]*?#t#[^>]*?>[\\s\\S]*?<[\\s]*?\\/[\\s]*?#t#[\\s]*?>".replace("#t#","script");
- str=Pattern.compile(reg_tag,Pattern.CASE_INSENSITIVE).matcher(str).replaceAll("");
- //再过滤hmtl标签
- reg_tag="<[^>]+>";
- reg_tag="<[\\s\\S]*?>";
- str=str.replaceAll("","");
- str=str.replaceAll("\n{1,}","#");
- str=str.startsWith("#")?str.substring(1):str;
- str=str.endsWith("#")?str.substring(0,str.length()- System.out.println("数量=="+str.split("#").length);
- str=str.replaceAll("#","\n");
- System.out.println(str);
- }
- staticStringreadFile(Filefile){
- StringBuildersb=newStringBuilder();
- try{
- BufferedReaderbr=newBufferedReader(newInputStreamReader(newFileInputStream(file),"UTF-8"));
- Stringline=null;
- while((line=br.readLine())!=null){
- if("添加".equals(line))
- continue;
- sb.append(line+"\n");
- br.close();
- }catch(Exceptione){
- e.printStackTrace();
- returnsb.toString();
- }
- voidmain(String[]args){
- newFile("D:\\workspace\\izbra_front\\WebRoot\\aa\\aa.java"));
- //先过滤script标签
- "script");
- "");
- //再过滤hmtl标签
- reg_tag="<[^>]+>";
- reg_tag="<[\\s\\S]*?>";
- "");
- "#");
- 1):str;
- System.out.println("数量=="+str.split("#").length);
- "\n");
- System.out.println(str);
- }
- staticStringreadFile(Filefile){
- newStringBuilder();
- try{
- "UTF-8"));
- null;
- null){
- if("添加".equals(line))
- continue;
- sb.append(line+"\n");
- br.close();
- catch(Exceptione){
- e.printStackTrace();
- returnsb.toString();
- }
伦理片http://www.dotdy.com/
}
@H_404_16@
影音先锋电影http://www.iskdy .com/