3个回答
展开全部
本人菜鸟给出建议:
方法一:
String str = "<td>30μg/m³";
StringBuffer sb = new StringBuffer();
Pattern p = Pattern.compile("(<td>)(30μg/m³)");
Matcher m = p.match(str);
while(m.find()){
m.appendReplacement(sb,""+"$2")
}
m.appendTail(sb);
System.out.println(sb.toString());
方法二:
String str = "<td>30μg/m³";
str = str.subString(4);
方法三:
String str = "<td>30μg/m³";
str = str.replace("<td>","");
方法一:
String str = "<td>30μg/m³";
StringBuffer sb = new StringBuffer();
Pattern p = Pattern.compile("(<td>)(30μg/m³)");
Matcher m = p.match(str);
while(m.find()){
m.appendReplacement(sb,""+"$2")
}
m.appendTail(sb);
System.out.println(sb.toString());
方法二:
String str = "<td>30μg/m³";
str = str.subString(4);
方法三:
String str = "<td>30μg/m³";
str = str.replace("<td>","");
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询