[Solved] Trim multiple items CSV using PowerShell


Got it…..I’m sure there is a cleaner version of my regular expressions but it works.

$Keywords="\sVersion\sis\s.{2,16}", '\sfound', '\sshould.{2,40}','\sfile'
$Csv | ForEach-Object {
ForEach($keyword in $Keywords){
$_.Results = $_.Results -replace $keyword,''
 }}
$Csv | Export-Csv $FileOut -NoTypeInformation

solved Trim multiple items CSV using PowerShell