可以有小数:^100$|^(\d|[1-9]\d)(\.\d+)*$ 不可以有小数:^100$|^(\d|[1-9]\d)$ 转载于:https://www.cnblogs.com/qqhfeng/p/9936058.html