public static void main(String[] args) {
String str = "100.01¥";
//String str = "100.01(万元)";
//String str = "100.01万元";
//String str = "100万元";
Pattern compile = Pattern.compile("\\d+(\\.\\d+)?");
Matcher matcher = compile.matcher(str);
matcher.find();
String string = matcher.group();
System.out.println(string);
}