i wanna check if the following letters in the following words exists. My code is:
$testString="Word"
$illegalCharacter =@{Warning="a","b";Error="c","d"}
if($testString -match $illegalCharacter.Error){
Write-Host "WORKS!"
}
I guess "-contains" only works with Arrays - not Hash Maps. But why do this dont work?
Thanks :)