Export (0) Print
Expand All

Regex.Split Method

Splits an input string into an array of substrings at the positions defined by a regular expression match.

Overload List

Splits the specified input string at the positions defined by a regular expression pattern specified in the Regex constructor..

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function Split(String) As String()
[C#] public string[] Split(string);
[C++] public: String* Split(String*) __gc[];
[JScript] public function Split(String) : String[];

Splits the specified input string a specified maximum number of times at the positions defined by a regular expression specified in the Regex constructor.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function Split(String, Integer) As String()
[C#] public string[] Split(string, int);
[C++] public: String* Split(String*, int) __gc[];
[JScript] public function Split(String, int) : String[];

Splits the input string at the positions defined by a regular expression pattern.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Split(String, String) As String()
[C#] public static string[] Split(string, string);
[C++] public: static String* Split(String*, String*) __gc[];
[JScript] public static function Split(String, String) : String[];

Splits the specified input string a specified maximum number of times at the positions defined by a regular expression specified in the Regex constructor, starting at a specified character position in the input string

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function Split(String, Integer, Integer) As String()
[C#] public string[] Split(string, int, int);
[C++] public: String* Split(String*, int, int) __gc[];
[JScript] public function Split(String, int, int) : String[];

Splits the input string at the positions defined by a specified regular expression pattern. Options can be specified to modify matching behavior.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Split(String, String, RegexOptions) As String()
[C#] public static string[] Split(string, string, RegexOptions);
[C++] public: static String* Split(String*, String*, RegexOptions) __gc[];
[JScript] public static function Split(String, String, RegexOptions) : String[];

See Also

Regex Class | Regex Members | System.Text.RegularExpressions Namespace

Show:
© 2014 Microsoft