title: Replace multiple non-digit char to 1 non-digit char
body: <p>I am working on app that read weight value from weighing indicator. The output from the indicator are contains with symbols, non digit char and also a number. I just want to extract the number. I have already turn non-digits and symbols into several pipes using regex <code>\D</code>. Then I wanted to turn this string</p>
  <blockquote>
  <p>||||||||||1234||||||||||||||1234||||||||||||||1234||||||||||||||1234||||||||||||||1234||||</p>
  </blockquote>
  <p>into</p>
  <blockquote>
  <p>|1234|1234|1234|1234</p>
  </blockquote>
  <p>How could I possibly do that?</p>