PowerShell - Regular Expressions
Which of the following is the correct syntax to check if the variable
$text contains the word "hello" using the match operator?$text contains the word "hello" using the match operator?-match placed between the variable and the pattern.$text -match "hello", which is the correct syntax. $text -matches "hello" uses -matches which is invalid.-match between variable and pattern [OK]-match exactly, no plural or missing dash [OK]-matches instead of -match15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions