Concept Flow - -replace operator
Input String
Apply -replace Operator
Match Pattern?
No→Return Original String
Yes
Replace Matches with Replacement Text
Output Modified String
The -replace operator checks the input string for a pattern. If it finds matches, it replaces them with the given replacement text and outputs the new string.