读书笔记分享20130611_1(国外英文资料).docVIP

  • 3
  • 0
  • 约1.86万字
  • 约 21页
  • 2017-06-05 发布于河南
  • 举报

读书笔记分享20130611_1(国外英文资料).doc

读书笔记分享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

文档评论(0)

1亿VIP精品文档

相关文档