title: Regex to format a string in a valid big decimal value
body: <p>Dear friends I'reading a csv file that contains some file like this <em>1.086,12</em>. Now my problem is that I have to format it a way that allows my to create a BigDecimal, them my correct value should be 1086.12. But I could also have another value 99,11 and in this case I have to get 99.11.</p>
  
  <p>I write this snippet of code:</p>
  
  <pre><code>BigDecimal bigDecimal = null;
  String str = value.replace(',','.');
  bigDecimal = new BigDecimal(str);
  </code></pre>
  
  <p>My code works just in the latter cese, Is there some regular expression that allows this?</p>