title: Match as many as possible and replace with one
body: <p>I need a regex which matches as many as possible of the special characters <code>\</code> and <code>|</code>. I want to replace the matches with one special character afterwards. I know how to replace them, but I dont know the right regex to select as many as possible.</p>
  
  <p>I tried some variations, but honestly I don't know what I'm doing and need some help.</p>
  
  <pre><code>[|+]|[\+]
  </code></pre>
  
  <p>Example data:</p>
  
  <pre><code>Hello ||||| this \\ is a test |||
  </code></pre>
  
  <p>Desired result:</p>
  
  <pre><code>Hello . this . is a test .
  </code></pre>