title: C# string to Decimal On All style or Culture
body: <p>Hi I want to find if there is any better way  to parse the string to Decimal which covers various format</p>
  
  <ol>
  <li>$1.30</li>
  <li>£1.50</li>
  <li>€2,50</li>
  <li>2,50  €</li>
  <li>2.500,00  €</li>
  </ol>
  
  <p>I see a lot of examples using culture to convert <code>.</code> &amp;  <code>,</code>.  But in my case, I don't have anything to identify the culture. </p>
  
  <p>This display field I get from the client and I need to extract the value.</p>
  
  <p>I tried following (which didn't work for all scenario) but would like to know if we have any best way to handle this.</p>
  
  <pre><code>Decimal.Parse(value,NumberStyles.Currency |
                      NumberStyles.Number|NumberStyles.AllowThousands |
                      NumberStyles.AllowTrailingSign | NumberStyles.AllowCurrencySymbol)
  </code></pre>
  
  <p>I also tried to use Regex to remove the currency sign but unable to convert both 1.8 or 1,8 in one logic.</p>