我是java,写的String[] tokens=expr.split(" "); 过滤掉就行