Using Powershell and Regex to Parse Fixed Length Field Files, How Do I Replace Empty Capture Groups with Zero?
I am using a PowerShell script and Regex to turn giant (>1GB) fixed field length text files into importable tab delimited files. The code is very fast. I need to change some of the captured fields (let’s say the 4th, 6th, and 7th fields) to 0 if they are empty after trimming. Is there a…Details