Replacement with regular expressions Like -match , the -replace operator uses regular expressions to find the specified pattern. But unlike -match , it replaces the matches with another specified value. By default, the -replace operator is case-insensitive .
Is powershell replace case-sensitive?
Replacement with regular expressions Like -match , the -replace operator uses regular expressions to find the specified pattern. But unlike -match , it replaces the matches with another specified value. By default, the -replace operator is case-insensitive .