- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
js中表单验证常用到的正则表达式(Regular expressions used in form validation in JS)
js中表单验证常用到的正则表达式(Regular expressions used in form validation in JS)
Regular expressions used in form validation in JS
Common patterns in regular expressions
Here are some common patterns in regular expressions.
/pattern/ result
Matches all characters other than line breaks
X matches 0 or X strings
X* matches 0 or more x strings, but matches the minimum number of times possible
X+ matches 1 or more x strings, but matches the minimum number of times possible
* match any character 0 times or one time
1, 1 or more of any character
The {m} match is just the specified string of M
{m, n} matches more than m strings specified below n
{m,} matches more than m specified strings
[] [] in the character match
[^], does not meet the characters within []
[0-9] matches all numeric characters
[a-z] matches all lowercase characters
[^0-9] matches all non numeric characters
[^a-z] matches all non lowercase characters
The character at the beginning of the matching character
The character at the end of the matching character
\d matches a numeric character, just like the [0-9] syntax
\d+ matches multiple numeric strings, just like the [0-9]+ syntax
\D non numeric, other with \d
\D+ non numeric, other with \d+
\w a string of English letters or numbers, just like [a-zA-Z0-9] syntax
\w+ is the same as [a-zA-Z0-9]+ syntax
\W strings that are not English letters or numbers, just like [^a-zA-Z0-9] syntax
\W+ is the same as [^a-zA-Z0-9]+ syntax
\s spaces, just like [\n\t\r\f] syntax
\s+ and [\n\t\r\f]+ are the same
\S non spaces, just like [^\n\t\r\f] syntax
\S+ is the same as [^\n\t\r\f]+ syntax
\b matches strings with English letters and numbers as borders
\B matches strings not in English and numeric bounds
A|b|c matches strings that conform to a characters or B characters or C characters
ABC matches strings containing ABC
(pattern) () this symbol will remember the string youre looking for. Its a very useful syntax. The string found in the first one becomes $1, the variable, or the \1 variab
您可能关注的文档
- 2010.06.03材质笔记(2010.06.03 material notes).doc
- 2010年度感动中国十大人物事迹及颁奖词(Deeds and awards speech of moving China's ten great figures in 2010).doc
- 2010年拆迁办上半年总结和下半年工作重点(2010 demolition work in the first half of the summary and focus of the second half of the work).doc
- 2010年基本能力试题特点(Basic ability examination questions in 2010).doc
- 2010年江苏省苏州市中考物理试题及答案(Physics examination questions and answers in Suzhou City, Jiangsu Province in 2010).doc
- 2010年2月互联网上刚出炉的50个段子(February 2010, the Internet just released 50 scripts).doc
- 2010年潍坊事业单位真题(部分)(2010 Weifang institutions Zhenti (part)).doc
- 2010年第8届希望杯数学小学六年级2试试题及详细答案(2010 eighth hope cup mathematics primary school six grade 2 test questions and detailed answers).doc
- 2010年自学考试《计算机系统结构》问答题重点(2010 self-study examination computer system structure question and answer key point).doc
- 2010开服装店有什么经营策略(2010 open clothing store what business strategy).doc
- 2026年横琴粤澳深度合作区首都师范大学子期实验小学招聘备考题库及答案详解参考.docx
- 2026年柳州银行股份有限公司招聘备考题库附答案详解.docx
- 2026年苏州市姑苏区教育体育和文化旅游委员会下属学校公开招聘事业编制教师备考题库完整答案详解.docx
- 2026年揭阳市检察机关公开招聘劳动合同制书记员19人备考题库及答案详解参考.docx
- 2026年杭州杭氧低温液化设备有限公司招聘备考题库参考答案详解.docx
- 2026年广州医科大学广州霍夫曼免疫研究所JulesHoffmann—陈笛课题组科研助理招聘备考题库.docx
- 2026年广东广晟稀有金属光电新材料有限公司招聘备考题库完整答案详解.docx
- 2026年江门市中医科学院科研助理招聘备考题库及答案详解一套.docx
- 2026年昆明滇池国家旅游度假区城市管理局招聘城市管理局辅助人员的招聘备考题库及答案详解1套.docx
- 2026年新疆中泰亨惠医疗卫材股份有限公司招聘备考题库参考答案详解.docx
最近下载
- 工业机器人系统操作员(中级工)理论考核试卷及答案(六).docx VIP
- 专注的惊人力量.pptx VIP
- 陕西省西安市西咸新区2024-2025学年六年级上学期期末英语试题.docx VIP
- 国有企业人力资源工作流程图(收藏了).doc VIP
- MT∕T 244.1-2020 煤矿窄轨车辆连接件 连接链.pdf
- 加油站税控初始化管理系统V12.pdf VIP
- 房建施工工序定额及施工工效大全.pdf VIP
- 《天津市建设项目配建停车场(库)标准》DB29-6-2004详解.docx
- 《分析化学》全套课件完整版)ppt.pptx VIP
- 专题06 《昆虫记》中考考试题及典型习题训练 (含答案析)-中考语文常考名著之阅读指导及考试题训练.docx VIP
原创力文档


文档评论(0)