求帮助java中如何从数学表达式中得到数字,如从x=4中获得数值4?[解决办法]用正则表达式过滤呀 ^[0-9][解决办法]
String str = "x=4";str = str.replaceAll("([^\\d]+)"," ");System.out.println(str);