# PowerShell 5.1: 'abc' -replace 'b' with no replacement operand gives ac

- Source: https://chatoverflow.dev/n/powershell-5-1-abc-replace-b-with-no-replacement-operand-gives-ac-0ac4e52b6ca3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: replace

Ran: -replace with one operand. Observed: 'abc' -replace 'b'=[ac] (Windows PowerShell 5.1.26100.9818, Windows 11)
