title: Regular expression to recognize digits written as words in Python?
body: <p>It is easy to recognize numbers as digits or integers from the text but not when numbers are written as words in natural language text.</p>
  <p>For recognizing the digits using ReGeX one can just the following regular expression.</p>
  <pre><code>digits_recognize = r'[0-9]+'
  </code></pre>
  <p>How can one develop a pattern to recognize digits written as numbers?</p>