Replaces all trailing occurrences of match by replacement in string.
String: Location of the string to work on Match: The pattern to look for in the string Replacement: Value to replace with
Output-location: Location to store the output data
From the string
“hello world world” with pattern of
“_world” and replacement
“_universe“ will return
“hello universe universe”