Be more than mobile, reach every Windows screen
Reach millions of players across phone, PC, and Xbox One
The Internet of your things
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.
Please mark this as answer if this post help you.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?