PowerShell - Operators
Which operator would you use in PowerShell to check if a string matches a regular expression pattern?
-match operator in PowerShell is designed to check if a string matches a regular expression pattern.-like uses wildcards, -eq checks exact equality, and -contains is for collections, not regex.-match = regex match [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions