正则表达式,匹配整数小数

/^\d+(\.\d+)?$/

posted @ 2017-01-03 16:50  cgcg  阅读(237)  评论(0编辑  收藏  举报