JAVA 正则问题 String compile="<.+?>";String str="<a href='asdasd'>hahah</a>";str = str.replaceAll(compile,"");System.out.println(str); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用分组啊String compile="<.+?>(.*?)</.+?>"; String str="<a href='asdasd'>hahah</a>"; Pattern p = Pattern.compile(compile); Matcher m = p.matcher(str); while(m.find()){ //if(m.matches()) System.out.println(m.group(1)); } struts1.0乱码(不安全字符) 前几次发帖没有及时给各位前辈回复,求教的问题还没有得到明确的答案,还是及时刷新表格问题 怎么用Java开发聊天软件啊? 关于String比较的问题,在线等..... socket服务器与客户端通讯的问题 正则表达式高手请进 写的第一个小程序,编译不过郁闷请大家帮着看看 一个LISTENER的小问题[请教] 遇到一个很纠结的问题 求教老手 不明白,怎么这个还产生空指针异常。 如何把draw方法转换buffImage对象
String compile="<.+?>(.*?)</.+?>";
String str="<a href='asdasd'>hahah</a>";
Pattern p = Pattern.compile(compile);
Matcher m = p.matcher(str);
while(m.find()){
//if(m.matches())
System.out.println(m.group(1));
}