Regular expressions are an advanced form of pattern matching. In PowerShell, a number of operators have direct support for regular expressions. Regular expressions themselves are covered in greater detail in Chapter 9, Regular Expressions.
The following operators use regular expressions:
- Match: -match
- Not match: -notmatch
- Replace: -replace
- Split: -split