Posts by Bruno Gomes • 121 points
1 post
-
2
votes3
answers763
viewsA: How to list the results of a regex search in a directory?
If you don’t need to list the lines the selects are on, you can use the code below: $arquivos = Get-Content *.cs | Out-String $selects = [Regex]::Matches($arquivos, "(?si)(SELECT.+?;)") $selects |…