日期:2014-05-20 浏览次数:20755 次
public class sdfsd {
public static void main(String[] args) {
String a=" 33 444 5555";
String t= " int i = 12";
System.out.println(a.replaceAll("(\\d+)", "<b>$1</b>"));
System.out.println(t.replaceAll("(\\d+)", "<b>$1</b>"));
}
}