title: Replace command using post.context to add new line
body: <p>Trying to add a line break here but it's not working. Tried also using the <code>`r</code>, but no luck.</p>
  
  <p>My code:</p>
  
  <pre><code>$extract = @()
  Select-String -Path $outfile -Pattern "text" -Context 0,12 |
      ForEach-Object {
          $extract += $_.Line | foreach {$_.Replace("text", "DD/MM")}
          $extract += $_.Context.PostContext | foreach {$_.Replace(',', "`n")}
      }
  $extract | Out-File $outfile1
  </code></pre>
  
  <p>My Input:</p>
  
  <pre>DD/MM
  27,28
  14
  21
  1
  15
  7
  12
  2,15
  25</pre>
  
  <p>What I'm trying to do is to add a line break for 27,28 and 2,15 so it reads each number in a separate line:</p>
  
  <pre>27
  28
  2
  15</pre>
  
  <p>Any idea why the replace is not working here?</p>