Introduction
The -replace operator helps you change parts of text easily. It finds a pattern and swaps it with new text.
You want to fix a typo in a text file.
You need to change all dates from one format to another.
You want to remove unwanted characters from a string.
You want to update words in a list of names.
You want to replace spaces with underscores in file names.