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)

public enum SplitOptions

Member nameDescription

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


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


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


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


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.


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


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


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

Return to top