我使用 string.split(regex) 所以在每个“,”之后剪切我的字符串,但我不知道如何在“,”后面的空格之后剪切。
String content = new String("I, am, the, goddman, Batman");
content.split("(?<=,)");
给了我数组
{"I,"," am,"," the,"," goddman,"," Batman"}
我真正想要的是
{"I, ","am, ","the, ","goddman, ","Batman "}
谁能帮帮我?