title: Regular expression for three numbers
body: <p>I created a regular expression that would match 2 numbers in any order from a four digit number. I am trying to create a regular expression that can math 3 numbers out of a four digit number in any order. Below is what I currently use to match two numbers: </p>
  
  <pre><code>regEx01 = re.compile(r'\b[0-9]*(?:0[0-9]*[0-9]?1|1[0-9]*[0-9]?0)[0-9]*\b')
  </code></pre>
  
  <p>Matches <code>0</code> and <code>1</code> in <code>7019</code>, <code>8019</code>, <code>2160</code>.</p>
  
  <p>Future regular expression must match <code>0</code>, <code>1</code> and <code>2</code>.</p>
  
  <pre><code>7012 positive
  0190 negative
  9201 positive
  1226 negative
  </code></pre>
  
  <p>Any direction will be greatly appreciated. </p>