String.split()

Signature

String[] split(String str, String regex)

Domain

ACTION, CONDITION, QUERY

Description

Splits this string around matches of the given regular expression. Trailing empty strings are not included in the resulting array.

Parameters

NameTypeDescription
strStringA String to be splitted.
regexStringthe delimiting regular expression.

Returns

TypeDescription
String[]the array of strings computed by splitting this string around matches of the given regular expression.