In java doc of public String\[\] split(String regex)
we can find example:
The string
"boo:and:foo"
, for example, yields the following results with these expressionsRegex Result
o
{ "b", "", ":and:f" }
What is the second result ""
come from? From between b
and oo
, or oo
and :and:f
?