title: Extract currency amount from string in Python
body: <p>I'm making a program that takes currency from a string and converts it in to other currencies. For example, if the string was <code>'the car cost me $13,250'</code> I would need to get <code>$</code> and <code>13250</code>. I have this regex already <code>(?:\£|\$|\€)(?:.{1,})</code> that sort of does it, however there is a reasonably large possibility that the string might have more than one price, all using different currencies. This is something that I do no know how to do effectively. </p>
  
  <p>What I need to know is how to extract all of the prices from a string. I think even if the regex just returns something like <code>['$12,250,000','£14,500,123','£120.25']</code> then it is fine because I can use something like this to get the number:</p>
  
  <pre><code>prices = ['$12,250','£14,500','£120']
  for value in prices:
      value.replace(',','')
  </code></pre>
  
  <p>And something like this to get the currency:</p>
  
  <pre><code>for c in prices:
       currency = c[0]
  </code></pre>
  
  <p>Then there is the problem that the price might not be a whole number, and might be something like <code>$12.54</code>. Any help on how to get that initial list of prices would be great.</p>