BBjString::split
Description
In BBj 7.0 and higher, this method splits this string around matches of the given regular expression.
The one-argument 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"} |
Syntax
Return Value |
Method |
---|---|
String[] |
split(string regex) |
String[] |
split(string regex, int limit) |
Parameters
Variable |
Description |
---|---|
regex |
The delimiting regular expression. |
limit |
The result threshold, as described above. |
Return Value
Returns the array of strings computed by splitting this string around matches of the given regular expression.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.