php 正则金额验证

$money_reg = '/^[1-9]\d*|^[1-9]\d*.\d+[1-9]$/';
if(!preg_match($money_reg, $money)){
$this->ajaxError('金额格式错误');
}
posted @ 2018-12-26 11:08  phpwyl  阅读(4274)  评论(0编辑  收藏  举报