SplitOptions SplitOptions SplitOptions Enum

Definition

A enum corresponding to the options on the -split operator.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum SplitOptions
type SplitOptions = 
Public Enum SplitOptions
Inheritance
SplitOptionsSplitOptionsSplitOptions
Attributes

Fields

CultureInvariant CultureInvariant CultureInvariant

CultureInvariant: Ignores cultural differences in language when evaluating the delimiter. Valid only with RegexMatch.

ExplicitCapture ExplicitCapture ExplicitCapture

Ignores non-named match groups, so that only explicit capture groups are returned in the result list.

IgnoreCase IgnoreCase IgnoreCase

Forces case-insensitive matching, even if -cSplit is specified.

IgnorePatternWhitespace IgnorePatternWhitespace IgnorePatternWhitespace

Ignores unescaped whitespace and comments marked with #. Valid only with RegexMatch.

Multiline Multiline Multiline

Regex multiline mode, which recognizes the start and end of lines, as well as the start and end of strings. Valid only with RegexMatch. Singleline is the default.

RegexMatch RegexMatch RegexMatch

Use regular expression matching to evaluate the delimiter. This is the default behavior. Cannot be used with SimpleMatch.

SimpleMatch SimpleMatch SimpleMatch

Use simple string comparison when evaluating the delimiter. Cannot be used with RegexMatch.

Singleline Singleline Singleline

Regex Singleline mode, which recognizes only the start and end of strings. Valid only with RegexMatch. Singleline is the default.