Split()
Contents
[
Hide
]Regex::Split(const String&) method
Splits string by regex matches.
ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | String to split. |
Return Value
Array of substrings between matches.
Regex::Split(const String&, int) method
Splits string by regex matches.
ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, int count)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | String to split. |
count | int | Number of substrings limit. |
Return Value
Array of substrings between matches.
Regex::Split(const String&, int, int) method
Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor. The search for the regular expression pattern starts at a specified character position in the input string.
ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, int count, int startat)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | The string to be split. |
count | int | The maximum number of times the split can occur. |
startat | int | The character position in the input string where the search will begin. |
Return Value
An array of strings.
Regex::Split(const String&, const String&, RegexOptions, TimeSpan) method
Splits string by regexp.
static ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, const String &pattern, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
pattern | const String& | Regexp pattern. |
options | RegexOptions | Matching options. |
matchTimeout | TimeSpan | Timeout. |
Return Value
Array of strings between matchse.
Regex::Split(const String&, const String&, int, RegexOptions, TimeSpan) method
Splits string by regexp.
static ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, const String &pattern, int count, RegexOptions options=RegexOptions::None, TimeSpan matchTimeout=InfiniteMatchTimeout)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
pattern | const String& | Regexp pattern. |
count | int | Match number limit. |
options | RegexOptions | Matching options. |
matchTimeout | TimeSpan | Timeout. |
Return Value
Array of strings between matchse.
See Also
- Enum RegexOptions
- Typedef ArrayPtr
- Class String
- Class Regex
- Class TimeSpan
- Namespace System::Text::RegularExpressions
- Library Aspose.Slides