title: Regex - matching while ignoring some characters
body: <p>I am trying to write a regex to max a sequence of numbers that is 5 digits long or over, but I ignore any spaces, dashes, parens, or hashes when doing that analysis. Here's what I have so far.</p>
  
  <pre><code>(\d|\(|\)|\s|#|-){5,}
  </code></pre>
  
  <p>The problem with this is that this will match any sequence of 5 characters including those characters I want to ignore, so something like "#123 " would match. While I do want to ignore the # and space character, I still need the number itself to be 5 digits or more in order to qualify at a match. </p>
  
  <p>To be clear, these would match:</p>
  
  <pre><code>1-2-3-4-5
  123 45
  2(134)   5
  </code></pre>
  
  <p>Bonus points if the matching begins and ends with a number rather than with one of those "special characters" I am excluding.
  Any tips for doing this kind of matching?</p>