janbaer
4/28/2013 - 6:36 AM

Replace parts of the content of a textfile with regular expressions in Powershell

Replace parts of the content of a textfile with regular expressions in Powershell

(Get-Content -path $inputFile) -Replace '"(\d+),(\d{1,})"', '$1.$2' -Replace '"(\d+)"'| Out-File $outputFile