1. String str=“各付价78.0万到手价58.0万”
String []as =str.split("万");
String a = as[0];
String regEx="[^0-9.]";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(a);*/
String []as =str.split("万");
String a = as[0];
String regEx="[^0-9.]";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(a);*/
System.out.println( m.replaceAll("").trim());
2. str = str.substring(str.indexOf("各付价")+3,str.indexOf("万"));