Modify Powershell Script to remove asterisk from HTML file
I would like to modify this Powershell script to remove an asterisk which is appearing in the html file.
The current error I am getting is:
The regular expression pattern * is not valid. At C:\Users\User1\Desktop\Report.ps1:39 char:1 + ((Get-Content -path $writeto -Raw) -replace $oldcontent,$newcontent) ...
You need to escape it:
Open in new window
It's a backwards apostrophe/grave (the character under the tilde).