$Sentence = "Hello I am Michael From Brooklyn New York"
if ($Keywords -Match $Sentence) {
Write-Host("True")
} else {
Write-Host("False")
}
是的
例2
# Output should be 'False'
$Sentence = "Hello I am Michael From QUEENS New York"
if ($Keywords -Match $Sentence) {
Write-Host("True")
} else {
Write-Host("False")
}