powershell regex replace any character code example
Example: powershell replace regex
# You can supply regular expressions to the
# first parameter of the replace operator.
$str = "Hello world!"
$str -replace "world|earth|mars", "unspecified planetary body"
# Output: Hello unspecified planetary body!