none
what is the regular expression for the double value??

Answers

  • Hi Pradip,

    Please try below code

    Match matchedDouble = Regex.Match(value, "[0-9]+[.[0-9]+]?");
    double number = Convert.ToDouble(matchedDouble.Value, CultureInfo.InvariantCulture);

    Please let me know in case it doesn't meet your requirements.

    Thanks,

    Amit Tonk

    -------------

    Please mark this as answer if this post help you.

    Thursday, October 17, 2013 12:22 PM