Split Method (String, String, RegexOptions)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Splits an input string into an array of substrings at the positions defined by a specified regular expression pattern. Specified options modify the matching operation.

Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

public static string[] Split(
	string pattern,
	string split,
	RegexOptions options


Type: System..::..String
The string to split.
Type: System..::..String
The regular expression pattern to match.
Type: System.Text.RegularExpressions..::..RegexOptions
A bitwise combination of the enumeration values that provide options for matching.

Return Value

Type: array<System..::..String>[]()[][]
An array of strings.