Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SplitOptions Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the options available for the –split operator that is used to separate one or more strings into substrings. This class is introduced in Windows PowerShell 2.0.

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

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

<FlagsAttribute>
Public Enumeration SplitOptions

Member nameDescription
CultureInvariant

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

ExplicitCapture

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

IgnoreCase

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

IgnorePatternWhitespace

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

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

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

SimpleMatch

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

Singleline

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

Return to top
Show: