public string isExists(string str)
{
return Regex.Match(str, @"[+-]?\d+(.\d{2})?").Value;
}
Response.Write( isExists("<b>-AU$15.08</b>"));
public string isExists(string str)
{
return Regex.Match(str, @"[+-]?\d+(.\d{2})?").Value;
}
Response.Write( isExists("<b>-AU$15.08</b>"));
转载于:https://www.cnblogs.com/zhang9418hn/archive/2012/05/09/2492164.html