PowerShell - Regular Expressions
You want to check if a string contains either "cat" or "dog" using
-match. Which pattern correctly matches either word?-match. Which pattern correctly matches either word?| means OR, so "cat|dog" matches either "cat" or "dog".| for OR in regex patterns [OK]| for OR in regex patterns [OK]|& which means AND in some contexts15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions