How can I perform a regex search in Powershell?
In which I remind myself how to search using regexes in Powershell
- Published
- Tag
- powershell
You can check if a character contains a string by using the cmatch operator like so:
$word = "Hello"
$word -cmatch "[A-Z]"
// True