Say you want to find functions that uses parameters named like:
Using Find-Member makes it easy.
That’s close, but I want it to start with a capital letter, to skip matches like:
Converting Like to a Regex
As* is the same as the regex
To start with a capital letter you could use:
Disabling Case-Sensitive matches
Because PowerShell defaults to case-insensitive matches
You need to remove the
i insensitive flag using the syntax
The final pattern is
Making it case-sensitive narrowed down the matches from 113 to 43 !