public class test{ public static void main(String args[]){ System.out.println(fun("账户余额:235,467.20")); } public static String fun(String s){ return s.replaceAll("[^0-9,\.]",""); } }
public class test{ public static void main(String args[]){ System.out.println(fun("账户余额:235,467.20")); } public static String fun(String s){ return s.replaceAll("[^0-9,\.]",""); } }