ASP.NET技巧:正则表达式提取数字_.net资料_编程技术-你的首页-uuhomepage.com
/// 
 /// 获取字符串中的数字
 ///  /// 
 /// 
 private int GetNumber(string par)
 {
 string strTempContent =par;
 strTempContent = System.Text.RegularExpressions.Regex.Replace(strTempContent, @"[^\d]*", "");
 return Convert.ToInt32(strTempContent);
 }