title: python match every position for number, space and hypens
body: <p>I need to write a regex in python to match a string that contains only numbers[0-9], space and hypens.</p>
  
  <pre><code>print re.match('\d*', '1sdsd')
  </code></pre>
  
  <p>The above pattern matches even when it contain characters.</p>