Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string[] RegexSplit(this string, string, RegexOptions)

Declaration

public static string[] RegexSplit(
    this string input,
    string pattern,
    RegexOptions options = None
)

Summary

Splits the input string at the position defined by pattern.

Parameters

this stringinput The string to search for a match.
stringpattern The regular expression pattern to split by.
RegexOptionsoptions A bitwise combination of the enumeration values that provide options for matching.

Returns

A new string array consisting of the pieces of the input string found between matches of the regular expression.