String.split2()

Signature

String[] split2(String str, String regex, int limit)

Domain

ACTION, CONDITION, QUERY

Description

Splits this string around matches of the given regular expression. The limit parameter controls the number of times the pattern is applied and therefore affects the length of the resulting array.

Parameters

NameTypeDescription
strStringA String to be splitted.
regexStringDelimiting regular expression.
limitintMaximum length of the result array.

Returns

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