title: Python Regex: Formatting use of commas, periods internationally
body: <p>I'm storing currencies in a Decimal. From the client, I could be receiving strings in the following formats:</p>
  
  <pre><code>US$1,000.00
  €1.000,00
  </code></pre>
  
  <p>So far, I've written:</p>
  
  <pre><code>re.sub(r'[^\d\.]', '', 'US$1,000.00')
  </code></pre>
  
  <p>which will return <code>1000.00</code> (formatted the way I'd like) for the first example and <code>1.000</code> for the second (which I don't).</p>
  
  <p>What would be the best way to catch both decimals correctly?</p>