public bool regexyn(string lsstr)
  {
   Regex r=new Regex(@"^\d+(\.)?\d*$");
   if(r.IsMatch(lsstr))
   {
    return true;
   }
   else
   {
    return false;
   }
  }

相关文章: