Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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)
Syntax
'Declaration
Public Shared Function Split ( _
pattern As String, _
split As String, _
options As RegexOptions _
) As String()
public static string[] Split(
string pattern,
string split,
RegexOptions options
)
public:
static array<String^>^ Split(
String^ pattern,
String^ split,
RegexOptions options
)
static member Split :
pattern:string *
split:string *
options:RegexOptions -> string[]
public static function Split(
pattern : String,
split : String,
options : RegexOptions
) : String[]
Parameters
- pattern
Type: System. . :: . .String
The string to split.
- split
Type: System. . :: . .String
The regular expression pattern to match.
- options
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.