数字类: n位小数的正实数 表达式 ^[0-9]+(.[0-9]{n})?$ 非0的正整数 表达式 ^\+?[1-9][0-9]*$ 转载于:https://www.cnblogs.com/NewSunshineLife/archive/2010/05/18/1738271.html