我正在使用 string.split(regex) 方法,以在每个逗号后分割我的字符串,但是我不知道如何在逗号后面的空格处分割。
String content = new String("I, am, the, goddman, Batman");
content.split("(?<=,)");
给我这个数组
{"I,"," am,"," the,"," goddman,"," Batman"}
what i actually want is
{"I, ","am, ","the, ","goddman, ","Batman "}
有人可以帮我吗?
这与IT技术无关。