Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

正则表达式只允许输入数字 连接符 减号

res='a121-ajs'
let num = /^[0-9.()-]+$/;
if (!num.test(rex)) {
}

版权声明:本文为yinyueyu007原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/yinyueyu007/article/details/123891425
文章导航
←ubuntu apt-get 时遇到waiting for headers ——解决方法
LeetCode 55: Jump Game 跳跃游戏→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1