java Regex - split but ignore text inside quotes?

后端 未结 4 1988
深忆病人
深忆病人 2021-01-15 18:35

using only regular expression methods, the method String.replaceAll and ArrayList how can i split a String into tokens, but ignore delimiters that exist inside quotes? the

4条回答
  •  醉梦人生
    2021-01-15 19:17

    Do not use a regular expression for this. It won't work. Use / write a parser instead.

    You should use the right tool for the right task.

提交回复
热议问题