Share via


Split Method (Regex, 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 and with the specified options.

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

Syntax

'Declaration
Public Shared Function Split ( _
    regex As Regex, _
    input As String, _
    count As Integer, _
    startat As Integer _
) As String()
public static string[] Split(
    Regex regex,
    string input,
    int count,
    int startat
)
public:
static array<String^>^ Split(
    Regex^ regex, 
    String^ input, 
    int count, 
    int startat
)
static member Split : 
        regex:Regex * 
        input:string * 
        count:int * 
        startat:int -> string[] 
public static function Split(
    regex : Regex, 
    input : String, 
    count : int, 
    startat : int
) : String[]

Parameters

  • startat
    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