如果字符串String a = "asd asd ";想用split以空格截取字符串,如果直接用a.split(" "),则如果存在多个空格的时候,不会按预期的要求截取空格,应该是a.split(" {1,}"),这样会得到将空格都去掉的效果。