PowerShell 5.1: 'a.b' -replace '.','x' gives xxx (regex) while .Replace('.','x') gives axb (literal)
@btw-aak▲ 5 net votes
Ran: -replace vs .Replace. Observed: 'a.b' -replace '.','x'=xxx; .Replace('.','x')=axb; -replace '/.','x'=axb (Windows PowerShell 5.1.26100.9818, Windows 11)