- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
常用正则表达式大全(Encyclopedia of regular expressions)
常用正则表达式大全(Encyclopedia of regular expressions)
Regular expressions for matching Chinese characters: [U4E00-U9FA5]
Commentary: Match Chinese is really a headache, with this expression is good to do
Match Double-byte characters (including Chinese characters): [^x00-xff]
Commentary: can be used to calculate the length of a string (one double-byte character length 2, ASCII character 1)
Regular expression that matches a blank row: ns*r
Commentary: can be used to delete blank lines
Regular expressions that match HTML tags: (*) [^]*. *? | .*? /
Commentary: The version that circulated on the internet is too bad, the above one can only match part, for complex nested tag still powerless
Regular expressions that match the trailing whitespace characters: ^s*|s*$
Commentary: A very useful expression that you can use to delete white space characters (including spaces, tabs, page breaks, and so on) at the end of a line.
Regular expression matching email address: w+ ([-+.] w+)*@w+([-.] w+)*.w+ ([-.] w+) *
Commentary: Very useful when validating forms
Regular expressions that match URL URLs: [a-za-z]+://[^s]*
Commentary: The online version of the function is very limited, the above basic can meet the requirements
Matches the account number is legal (the letter begins, allows 5-16 bytes, allows the alphanumeric underline): ^[a-za-z][a-za-z0-9_]{4, 15}$
Commentary: Very useful when validating forms
Match domestic phone number: D{3}-d{8}|d{4}-d{7}
Commentary: matching forms such as 0511-4405222 or 021Matching Tencent QQ Number: [1-9][0-9]{4,}
Commentary: Tencent QQ number starting from 10000
Match China postal Code: [1-9]d{5} (?!) D)
Commentary: China postcode is 6 digits
Matching ID: d{15}|d{18}
Commentary: Chinese identity card is 15 or 18
Matching IP address: +. +. +. +
Commentary: Useful when extracting IP addresses
Match a specific number:
^[1-9]d*$//Matching positive integers
^-[1-9]d*$//Match negative integers
^-? [1-9]d*$//Match integers
^[1-9]d*|0$///matched nonnegat
您可能关注的文档
- 合并排序(Merge sort).doc
- 合格评定程序及其初步理解_中国质量新闻网(Conformity assessment procedures and preliminary understanding of _ China Quality News Network).doc
- 合肥WIFI执点(Hefei WIFI holding point).doc
- 可口麦田香芋坊推荐世界著名甜点一览(The coca crop taro workshop recommended the world famous dessert.).doc
- 合格评定技术标准考试100题(100 questions of conformity assessment technical standard examination).doc
- 可实现的基于MCS_51单片机的恒温控制系统的设计(Design of constant temperature control system based on MCS_51 MCU).doc
- 合适架构至关管理重要 eHR技术策略(The appropriate architecture is critical to manage important eHR Technology Strategies).doc
- 合集简介(Collection synopsis).doc
- 吉他学习中节拍器的运用(By learning the guitar.).doc
- 吉大《国际贸易》在线作业一(Kyrgyzstan international trade online homework).doc
- 常用计算(Common calculation).doc
- 常用电脑快捷键操作(Common keyboard shortcuts).doc
- 常考名词解释(Noun interpretation).doc
- 常用语句(Common sentences).doc
- 常见EMC问题(Common EMC problems).doc
- 常见压铸件缺陷解决方法(Solutions to common defects in die castings).doc
- 常见复音虚词(Common polysyllabic function words).doc
- 常见物理公式,名称,概念(Common physics formulas, names, concepts).doc
- 常见的对联(短联)句法(Common antithetical couplet (short couplet) syntax).doc
- 常见心理防卫机制(Common psychological defense mechanism).doc
最近下载
- 城市轨道交通AFC系统65课件.pptx VIP
- 2025年云南省交通投资建设集团有限公司校园招聘笔试备考题库及答案解析.docx VIP
- 建筑工地基孔肯雅热防控和应急方案.docx VIP
- 第3章 知觉和模式识别.ppt VIP
- 公开课饮酒其五省公开课一等奖全国示范课微课金奖课件.pptx VIP
- 第二单元 6~10的认识和加、减法 单元教学设计 2025人教版数学一年级上册.pdf
- 钢筋混凝土管管道吊装方案.doc VIP
- 中医操作评分标准.pdf VIP
- 5.1 探究过氧化钠与二氧化硫的反应 课件 高一下学期化学人教版(2019)必修第二册.pptx VIP
- 农广校说课大赛.pptx VIP
文档评论(0)