摘要:
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 阅读全文