PowerTip: Replace Multiple Words in String with PowerShell
Summary: Use Windows PowerShell to replace multiple words in a string. How can I use Windows PowerShell to replace misspelled words in a string? Use the –Replace operator, for example: $s = "The calander says there are five calendar days left in the callander" $s -replace "calander|callander",&...