NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Regex.Split

The Split methods are similar to String.Split, except that they split the string at a delimiter determined by a regular expression instead of a set of characters. If count is specified, the string is split into at most count strings (the last string containing the unsplit remainder of the string); a count value of zero provides the default behavior of splitting as many times as possible. If startat is specified, the first delimiter is searched for starting at the specified point (this can be used, for example, for skipping leading whitespace).

Overload List

Splits the input string at the position defined by a previous pattern.

[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) [];
[JScript] public function Split(String, int, int) : String[];

Splits the input string at the position defined by pattern.

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

Splits the input string at the position defined by pattern.

[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*) [];
[JScript] public static function Split(String, String) : String[];

Splits the input string at the position defined by a previous pattern.

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

Splits the input string at the position defined by a previous pattern.

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

See Also

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