- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
php email正则验证(PHP email regular verification)
php email正则验证(PHP email regular verification)
PHP regular check email code to learn PHP believe that people should know the following check for eamil statements, but really can understand not much
PHP?
If (eregi (^[_.0-9a-z-]+@ ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$, $email)) {
Echo your E-Mail through a preliminary examination;
}
?
In this sentence, the first is the application of a eregi function, this function is fairly well understood. Just find a book, you can explain it to you:
Syntax: int ereg (string pattern, string string, array [regs]);
Return value: integer array
This function to parse the string string to pattern rules.
Results the value returned in an array of parameters regs, regs[0] content is the original string string, regs[1] for the first string, regular regs[2] is second in line with the rules of the string, and so on. If you omit the parameter regs, simply find the comparison, the return value is true.
Not too good is in front of understanding this regular expression: ^[_.0-9a-z-]+@ ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$
During this period of regular expressions, + in front of the string for one or more; ^ a character string must appear in the beginning, said before a string must appear at the end;
that is ., here is the escape character; {2,3} in front of the string can be a continuous time 2-3. () that contains the content must appear at the same time in the target object. [_.0-9a-z-] is included in the _, , -, from a to Z within the scope of the letters, from 0 to 9 range in the number of arbitrary characters;
As a result, the regular expressions can be translated:
The following characters must be at the beginning (^), the character must be included in the _ , , - , from a to Z within the scope of the letters, from 0 to 9 range in the number ([_.0-9a-z-]), the character appeared at least once (+), @, the string consists of from a to Z within the scope of a letter, from 0 to 9 within the scope of the digital characters in the beginning, followed by
您可能关注的文档
- maya渲染设置2(Maya render settings 2).doc
- mba全套中文教程-生产与运作原理-第二部-datat0105(MBA complete Chinese tutorial - production and operation principle - second -datat0105).doc
- mba现代企业高级管理人员培训教程(MBA modern enterprise senior management training course).doc
- mcs-51单片机实用子程序库1(MCS-51 SCM utility subroutine library 1).doc
- mba逻辑七大训练方法(Seven training methods of MBA logic).doc
- mdm.exe 进程(mdm.exe 进程).doc
- meiyuchou(meiyuchou).doc
- matlab常用函数(Matlab common functions).doc
- mfc与vc++的关系(The relationship between MFC and vc++).doc
- mdfl 2(mdfl 2).doc
- php 正则表达式的模式修正符(Schema modifier for PHP regular expressions).doc
- php012 学生公寓信息管理系统(Php012 student apartment information management system).doc
- photoshop快捷键大全3(PS图象处理软件快捷键大全3).doc
- photoshop路径面板中的小技巧(Tips in the Photoshop path palette).doc
- phpcmsv9二次开发便捷自定义后台入口文件夹(Phpcmsv9 two development, convenient custom background entry folder).doc
- phpcms标签说明(Phpcms label description).doc
- pcb制版工艺流程(PCB plate making process).doc
- php各种编码集详解和在什么情况下进行使用(PHP various coding set, detailed and in what circumstances to use).doc
- php日期时间函数(PHP date time function).doc
- php实现mvc开发 一个简单的mvc(PHP implementation of MVC development, a simple MVC).doc
最近下载
- 薪酬管理从入门到精通.pdf
- GJB451B-2021装备通用质量特性术语.docx VIP
- 2025昆明滇池国家旅游度假区政务服务局政务服务中心招聘(1人)笔试备考题库及答案解析.docx VIP
- 初中寒假实践总结.docx VIP
- 最新AS9100D:2016全套文件(手册+程序文件+表单共475页).docx VIP
- 客运站年终总结2500字集锦.docx VIP
- ETP48400-C3B1嵌入式电源系统.pdf
- 2025企业安全主体责任清单及对标检查手册.pdf VIP
- 急诊科医疗质量评价体系与考核标准.doc VIP
- TB 10751-2018 高速铁路路基工程施工质量验收标准 含2024年修改单(3-1).pdf
文档评论(0)