take a look at
http://www.regexlib.comafter you enter "decimal" in the keyword box, and click on Search button>>1.侦测是否是decimal类型数据
^[-+]?\d+(\.\d+)?$ >> 2.不能输入负数
^[+]?\d+(\.\d+)?$>>3.如这个decimal数据的格式定义为 xxx.xx,
^\d{3}\.\d{2}$see articles about 正则表达式
http://cn.websearch.yahoo.com/search/web_cn?p=%d5%fd%d4%f2%b1%ed%b4%ef%ca%bd&u=B&hc=0&hs=0
http://www.regexlib.comafter you enter "decimal" in the keyword box, and click on Search button>>1.侦测是否是decimal类型数据
^[-+]?\d+(\.\d+)?$ >> 2.不能输入负数
^[+]?\d+(\.\d+)?$>>3.如这个decimal数据的格式定义为 xxx.xx,
^\d{3}\.\d{2}$see articles about 正则表达式
http://cn.websearch.yahoo.com/search/web_cn?p=%d5%fd%d4%f2%b1%ed%b4%ef%ca%bd&u=B&hc=0&hs=0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货