I have retrieved the content editor XML web part properties and stored inside the CSV file which has multiple property columns in file.

Content column has multiple special characters (?,&). I want to replace the character with null and store it back to local.

I used below code to replace all columns in a file.

(get-content $ReportOutput) -replace ('[?]') -replace('NULL','') | Set-Content $ReportOutput

Now I want to replace particular column in file not all columns and used below code and getting error.

(get-content $ReportOutput |
      #Select-Object -Property $Web Part Content) -replace ('[?]') -replace('NULL','') | Set-Content $ReportOutput

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.