Share via


Split Method (String, RegexOptions, String, Int32, Int32)

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

Splits the input string 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, _
    options As RegexOptions, _
    split As String, _
    start As Integer, _
    maxOccurances As Integer _
) As String()
public static string[] Split(
    string pattern,
    RegexOptions options,
    string split,
    int start,
    int maxOccurances
)
public:
static array<String^>^ Split(
    String^ pattern, 
    RegexOptions options, 
    String^ split, 
    int start, 
    int maxOccurances
)
static member Split : 
        pattern:string * 
        options:RegexOptions * 
        split:string * 
        start:int * 
        maxOccurances:int -> string[] 
public static function Split(
    pattern : String, 
    options : RegexOptions, 
    split : String, 
    start : int, 
    maxOccurances : int
) : String[]

Parameters

  • start
    Type: System. . :: . .Int32
    The character position in the input string where the search will begin.

Return Value

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

.NET Framework Security

See Also

Reference

Regex Class

Split Overload

System.Text.RegularExpressions Namespace