String.split() *not* on regular expression?

前端 未结 8 916
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 04:31

Since String.split() works with regular expressions, this snippet:

String s = \"str?str?argh\";
s.split(\"r?\");

... yields: <

8条回答
提交回复
热议问题