字符串截取,从后往前截。怎么实现?从后往前截 第一个出现非0的字符为止比如:string str = "440103000000" 我想得到 “440103”怎么实现呀[解决办法]
System.out.println("440103000000".replaceAll("0*$",""));