- TIBCO BusinessEvents®
- Standard
- String

# 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

Name | Type | Description
--- | --- | ---
`str` | `String` | A String to be splitted.
`regex` | `String` | Delimiting regular expression.
`limit` | `int` | Maximum length of the result array.

## Returns

Type | Description
--- | ---
`String[]` | the array of strings computed by splitting this string around matches of the given regular expression.