System::Text::RegularExpressions::Regex::Split method
Contents
[
Hide
]Regex::Split(const String&) method
Splits string by regex matches.
ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input)
Parameter | Type | Description |
---|---|---|
input | const String& | String to split. |
ReturnValue
Array of substrings between matches.
See Also
- Typedef ArrayPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.PDF for C++
Regex::Split(const String&, int) method
Splits string by regex matches.
ArrayPtr<String> System::Text::RegularExpressions::Regex::Split(const String &input, int count)
Parameter | Type | Description |
---|---|---|
input | const String& | String to split. |
count | int | Number of substrings limit. |
ReturnValue
Array of substrings between matches.
See Also
- Typedef ArrayPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.PDF for C++
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)
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. |
ReturnValue
An array of strings.
See Also
- Typedef ArrayPtr
- Class String
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.PDF for C++
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)
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. |
ReturnValue
Array of strings between matchse.
See Also
- Typedef ArrayPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.PDF for C++
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)
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
pattern | const String& | Regexp pattern. |
options | RegexOptions | Matching options. |
matchTimeout | TimeSpan | Timeout. |
ReturnValue
Array of strings between matchse.
See Also
- Typedef ArrayPtr
- Class String
- Enum RegexOptions
- Class TimeSpan
- Class Regex
- Namespace System::Text::RegularExpressions
- Library Aspose.PDF for C++