Splits this string around matches of the given regular expression.
This method works as if by invoking the two-argument split
method with the given expression and a limit
argument of zero. Trailing empty strings are therefore not included in
the resulting array.
The string "boo:and:foo", for example, yields the following results with these expressions:
Regex Result : { "boo", "and", "foo" } o { "b", "", ":and:f" }
regex
| the delimiting regular expression |
PatternSyntaxException
| if the regular expression's syntax is invalid |
java.util.regex.Pattern
@spec JSR-51
Diagram: String