In Powershell, how can I replace a string containing a question mark? For instance:
(Get-Content file.txt) -replace "Hello?","Hello."
The question mark seems to be interpreted as a special character. Is there any way to avoid this? I tried using one or two backticks, but did not succeed.
source
share