摘要: privatebool IsAllNumber(string text) { Regex objNotNumberPattern =new Regex("[^0-9.-]"); Regex objTwoDotPattern =new Regex("[0-9]*[.][0-9]*[.][0-9]*"); Regex objTwoMinusPattern =new Regex("[0-9]*[-][0-9]*[-][0-9]*"); String strValidRealPattern ="^([-]|[.]|[-.]|[0-9 阅读全文
posted @ 2012-06-13 23:41 天黑了 阅读(4711) 评论(0) 推荐(0) 编辑