Skip to content

Instantly share code, notes, and snippets.

@janbaer
Created April 28, 2013 06:36
Show Gist options
  • Save janbaer/5476117 to your computer and use it in GitHub Desktop.
Save janbaer/5476117 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment