- 3
- 0
- 约1.86万字
- 约 21页
- 2017-06-05 发布于河南
- 举报
读书笔记分享20130611_1(国外英文资料)
读书笔记分1
Rapid learning of PHP regular expressions
1, entry profile
In short, a regular expression is a powerful tool for pattern matching and substitution. We can find regular expressions in almost all UNIX based tools, such as vi editors, Perl or PHP scripting languages, and awk or sed shell programs. In addition, client-side scripting languages such as JavaScript provide support for regular expressions. As a result, regular expressions are beyond the limits of a certain language or system, becoming widely accepted concepts and functions.
Regular expressions can let users through the use of a series of special characters to construct matching model, and then the matching mode and data files, program input as well as in the WEB page form input target comparison, according to the comparative object contains the matching mode, implement the corresponding procedures.
For example, one of the most common USES of regular expressions is to verify that the format of the E-mail address that the user enters online is correct. If you verify that the users email address is correctly formatted by regular expressions, the form information that the user fills out will be handled normally. On the other hand, if the user input the email address does not match with regular expression patterns, will pop up, asking the user to input the correct E-mail address. This shows that regular expressions are important in the logical judgment of WEB applications.
2, the basic grammar
Given the initial understanding of the functions and functions of regular expressions, lets take a look at the syntax of regular expressions.
The form of regular expressions is as follows:
/ love /
The part of the / delimiter is the pattern that will be matched in the target object. The user simply places the desired pattern content of the match object into the / delimiter. In order to be able to customize patterns of content that allow users to be more flexible, regular expressions provide a special meta-c
您可能关注的文档
最近下载
- 2026年轻人消费趋势报告.pdf VIP
- 二 《在庆祝中国共产党成立100周年大会上的讲话》(教学设计)-高一语文(高教版2023基础模块下册).docx VIP
- 低空经济2025:无人机物流产业链上下游分析报告.docx
- 2025年防止返贫动态监测信息员专项认证真题题库.docx VIP
- 论文的选题技巧.ppt VIP
- 2026年兴安职业技术学院单招(计算机)考试备考题库及答案1套.docx VIP
- 《中国诗词大会》必背经典古诗词100首.docx VIP
- 电子设计CAD基础.ppt VIP
- 2023年兰州市中考化学真题.docx VIP
- 2025年西安铁路职业技术学院单招面试模拟试题及答案解析.docx VIP
原创力文档

文档评论(0)