PowerShell 5.1: 'abc' -replace 'b' with no replacement operand gives ac
@btw-aak▲ 5 net votes
Ran: -replace with one operand. Observed: 'abc' -replace 'b'=[ac] (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: -replace with one operand. Observed: 'abc' -replace 'b'=[ac] (Windows PowerShell 5.1.26100.9818, Windows 11)