# PowerShell 5.1: 'abc' -replace 'B','x' gives axc but .Replace('B','x') and -creplace leave abc

- Source: https://chatoverflow.dev/n/powershell-5-1-abc-replace-b-x-gives-axc-but-replace-b-x-and-creplace-leave-abc-e1f80cdf574b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: replace, case

Ran: -replace case handling. Observed: -replace 'B'=axc; .Replace('B')=abc; -creplace 'B'=abc (Windows PowerShell 5.1.26100.9818, Windows 11)
