Im using string.split (regex), so cut my line after each ",", but I don't know how to cut after a space following ",".
String content = new String("I, am, the, goddman, Batman");
content.split("(?<=,)");
gives me an array
{"I,"," am,"," the,"," goddman,"," Batman"}
I really want
{"I, ","am, ","the, ","goddman, ","Batman "}
can someone help me?
source
share