Powershell - How to search for Whole Words (or) Exact Matches
问题 this is my requirement. I need to find if a certain CSS classes is referenced in my Solution which has over 120 aspx pages. This is the command that we wrote gci . -include *.aspx -recurse | select-string -pattern ".rtop" -caseSensitive >> D:\CSSResult.txt However, this matches even words with rtop in middle. That is, if I have a variable named as dirtopy, it comes in the result list. I do not want that. I want it in the result only if an exact match of .rtop is found. How do I do it? Any