title: PowerShell -replace with multiple occurrences next to each other in the line
body: <p>I have a | delimited file and I have some data where for null values it has a space.  So, in my data file I'll have something like this:</p>
  <pre><code>2080| | | | | | | | | | | | | |2000225
  </code></pre>
  <p>I tried this:</p>
  <pre><code>-replace '\| \|', '||'
  </code></pre>
  <p>but it matches pairs of <code>|</code> and still leaves the space when it's done between <code>|</code>.  I'm just not really good with regex and totally new to Powershell.</p>
  <pre><code>2080|| || || ....|2000225
  </code></pre>
  <p>I'm not sure if recursion would solve this or if I'm going to need to write a short Java program to do it.</p>