How to Check if a String Contains Special Characters in PowerShell
Need to check if a string contains special characters in PowerShell? Use -match with a negated character class. It returns True as soon as one character that isn’t a letter or digit shows up: The catch is deciding what “special” means. Spaces, underscores and accented letters like é all change the answer, and the -like … Read more