You can check if a character contains a string by using the cmatch operator like so:
$word = "Hello"
$word -cmatch "[A-Z]"
// True
Something to think about: Has anyone seen my keys? I dropped them in here somewhere...
In which I remind myself how to search using regexes in Powershell
ยท powershell
You can check if a character contains a string by using the cmatch operator like so:
$word = "Hello"
$word -cmatch "[A-Z]"
// True