我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

正则表达式验证以包含带有jquery的enter键

i am using the jQuery.validationEngine i need to mod one property so that i can use it with a text area

rite now the regex is

"onlyNumberSp": {
                    "regex": /^[0-9\ ]+$/,
                    "alertText": "* Numbers only"

it allows numbers only and a space, i need to take out the space and include a return key.

Change your regular expression to disallow spaces and allow newlines:

"regex": /^[0-9
]+$/

近期文章

  • 如何在linux环境下打包python脚本为win32程序
  • 关于#ar#的问题:我想写一个把整型数字换成字符数组的函数我的程序如下#include <bits>(语言-c++)
  • ValueError: Number of processes must be at least 1出现的原因和解决办法
  • 关于#人工智能#的问题,给杂草识别机器人做界面
  • perl脚本运行出现错误
  • 关于#json#的问题,如何解决?
  • droproot触摸 小米11 14开发版
  • npm i vue-awesome-mui -S安装失败
  • 逻辑回归样本点的展示一直报错
  • jupyter notebook界面异常,如何解决?
  • 在PHP中使用数组而不是大量的数据库查询
  • 用scala写银行转账的代码
  • 关于#c语言#的问题,请各位专家解答!
  • 桌面图标之间间隔一行
  • 关于#c语言#的问题,如何解决?
  • C语言中如何规范输入类型
  • k进制的子字符串问题
  • 报错:ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray)
  • fyne.URI这个类型怎么定义
  • 怎么解决啊,装了BS4,运行时说没有找到这个

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华