https://www.cnblogs.com/xuliangxing/p/7993267.html
str = System.Text.RegularExpressions.Regex.Replace(str, @"[^0-9]+", "")
str = Regex.Replace(str, @"[^\d.\d]", "")//带小数点
【c#】提取字符串中的数字
原文:https://www.cnblogs.com/Mars-0603/p/14807726.html