How can you check if a PowerShell string contains a character or substring?
You might be tempted to try this:
PS> $s = 'abcdefghijk'
PS> $s -contains 'f'
False
But –contains is for working with the contents of arrays. So you could do this: … Read the full text.