title: python search string for numbers, put brackets around them
body: <p>I'm trying to search a string for numbers, and when finding them, wrap some chars around them, e.g.</p>
  
  <pre><code>a = "hello, i am 8 years old and have 12 toys"
  a = method(a)
  print a
  "hello, i am \ref{8} years old and have \ref{12} toys"
  </code></pre>
  
  <p>I've looked at the re (regular expression) library, but cannot seem to find anything helpful... any cool ideas?</p>