title: transforming numbers from words to digits
body: <p>I need to build a function that takes word representation of a number as an input and transforms it into a digit. <code>one =&gt; 1</code>, <code>threethousandsixtyhundreadtwo =&gt; 3602</code> etc. I have the upper limit for the number <code>(999,999)</code> and I have already done reverse function. I have also all the words that will be used. So far, I am stuck on, how to separate each part of the number, when there are no spaces or anything similar between different parts of the number. </p>
  
  <p>Doing this in python. I didn't find any reasonable method to do it with <code>find()</code>.</p>