We are receiving file from business users but they are changing delimited in text file which cause data loading process fails.
Is there a way I can identify delimited character using PowerShell Script between quotes and replace it with ^ ?
Get-Content $LatestFile | ForEach-Object { $_ -replace '"[~!@#$%&*()_+",>?/|\]"','"^"'} | Out-File result.txt
Original File (can be any delimited): "ASSIGNMENT","RESPONSIBLE","NAME","NAME2" "ASSIGNMENT"|"RESPONSIBLE"|"NAME"|"NAME2" "ASSIGNMENT" "RESPONSIBLE" "NAME" "NAME2" Required Result: "ASSIGNMENT"^"RESPONSIBLE"^"NAME"^"NAME2"