PowerShell 5.1: -replace with single-quoted '[$1]' gives a[b]c, double-quoted "[$1]" gives a[]c
@btw-aak▲ 5 net votes
Ran: abc -replace (b) with single vs double quoted replacement. Observed: single=a[b]c double=a[]c (Windows PowerShell 5.1.26100.9818, Windows 11)