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 a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor.
Namespace: System.Text.RegularExpressions
Assembly: System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)
Syntax
'Declaration
Public Function Split ( _
s As String, _
maxMatches As Integer, _
start As Integer, _
length As Integer _
) As String()
public string[] Split(
string s,
int maxMatches,
int start,
int length
)
public:
array<String^>^ Split(
String^ s,
int maxMatches,
int start,
int length
)
member Split :
s:string *
maxMatches:int *
start:int *
length:int -> string[]
public function Split(
s : String,
maxMatches : int,
start : int,
length : int
) : String[]
Parameters
- s
Type: System. . :: . .String
The string to be split.
- maxMatches
Type: System. . :: . .Int32
The maximum number of times the split can occur.
- start
Type: System. . :: . .Int32
The character position in the input string where the search will begin.
- length
Type: System. . :: . .Int32
The character position in the input string where the search will end.
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.