I want to replace strings like url: `= this.url`
with url: $url$
I got quite close with this:
(Get-Content '.\file') -Replace "``= this.(\w+)``", "$ `$1$"
with output url: $ url$
.
But when I remove extra space then the output breaks.
How can I escape/modify "$`$1$"
so that it works?