11 2012 档案

摘要:public decimal GetStringLastNumber(string str) { decimal result = 0; if (str != null && str != string.Empty) { Match match = Regex.Match(str, @"(^.+?)(\d+$)"); if(match.Success) { result = decimal.Parse(match.Groups[2].Value); } } return result; } 阅读全文
posted @ 2012-11-15 15:47 therockthe 阅读(978) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示