I have a .tex
file in which I want to replace the string a\a{nn}o
with a(nn)o
I have tried the following PowerShell (v5) code:
(Get-Content h:\combined.tex) | ForEach-Object { $_ -replace "a\a{nn}o", "a(nn)o" } `
| Set-Content h:\combined2.tex
It runs, but nothing changes in the text. What am I doing wrong?
"a\\a\{nn\}o"
should fix it.