标签: java
我有这样的字符串
"'Hello, how are you?','string',123"
我需要拆分它,看起来像
["'Hello, how are you'", "'string'", "123"]
但是当我使用String.split(“,”)时,我得到了这个:
["'Hello", "how are you'","'string'","123"]
如何用逗号分隔,但只有当它不在单引号之间?