Share via


Split Method

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

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Split(String) Splits an input string into an array of substrings at the positions defined by a regular expression pattern specified in the Regex constructor.
Public method Split(String, Int32) 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.
Public methodStatic member Split(String, String, RegexOptions) Splits an input string into an array of substrings at the positions defined by a specified regular expression pattern. Specified options modify the matching operation.
Public methodStatic member Split(Regex, String, Int32, Int32) Splits the input string at the positions defined by a specified regular expression pattern and with the specified options.
Public method Split(String, Int32, Int32, Int32) 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.
Public methodStatic member Split(String, RegexOptions, String, Int32, Int32) Splits the input string at the positions defined by a specified regular expression pattern. Specified options modify the matching operation.

Top

See Also

Reference

Regex Class

System.Text.RegularExpressions Namespace