public static void main(String[] args) {
String aa = "-3419.66万元";
Pattern compile = Pattern.compile("[-\\\\+]?([\\d+]|[\\d+\\.\\d+])+");
Matcher matcher = compile.matcher(aa);
matcher.find();
aa=matcher.group();
System.out.println(aa);
}
输出结果:-3419.66