怎样用正则表达式截取截取小数点前面的值。如题。[解决办法]String str1 = "33.3 "; String regex = "([^.]*).* "; String str2 = str1.replaceAll(regex, "$1 ");