Convert String to Decimal - leave digits
<p>I've got a form which allows a user to enter a price, for example, <code>10.00</code>. </p>

<p>However as the form is purley text a user could enter <code>$10.00</code> or <code>10.00 for book</code>. 
I cannot change the UI, this has to be done under the hood. 
So basically what ever the use types I just want a decimal result. </p>

<p>I started to do this</p>

<pre><code>public decimal FilterPrice(dynamic price) {
    string convertPrice=price.ToString();

    var filterNumber=
        from letter in convertPrice
        where char.IsDigit(letter)
        select letter;

    return something;
}
</code></pre>

<p>However this will strip out <code>.</code>.  Any ideas how to do this? </p>
