"Regular expression must know" reading

Source: Internet
Author: User

Content Profile ...

"Regular expression must know" starts with a simple text match and introduces a lot of complex content, including backtracking, conditional evaluation, and front-to-back lookup, and so on. Each chapter provides readers with a number of concise and useful examples that help you master regular expressions in a comprehensive, systematic, and fast way, and use them to solve real-world problems. Regular expressions are powerful weapons that can be used in almost all programming languages and on computer platforms to perform complex text processing tasks. And the content of the book is to maintain language and platform neutrality, but also take into account the differences between the various platforms. By reading this book, readers can quickly grasp the essence of regular expressions in a relaxed range, and can immediately apply what they have learned to solve practical problems.

Author Profile ...

Ben Forta

With more than more than 30 years of experience in the field of computing, he is a world-renowned technical writer and a leading expert in the Adobe Technology community, and is currently a senior executive at Adobe's customer training department. He wrote the "SQL Must know will" "MySQL must know will" and so short, can quickly start to be praised by readers, has been translated into more than 10 words, become a world-class bestseller.

Catalog ...1th Introduction to Regular Expressions 1
1.1 Use of regular expressions 1
1.2 How to use regular expressions 2
1.2.1 Searching with regular Expressions 3
1.2.2 replacing with regular expressions 3
1.3 What is a regular expression 4
1.4 Using regular Expressions 5
1.5 Before continuing with the study 6
1.6 Summary 6
The 2nd chapter matches a single character 7
2.1 Matching Plain Text 7
2.1.1 has multiple matching results 8
2.1.2 Case of Letters 8
2.2 Match any character 9
2.3 Matching Special Characters 12
2.4 Summary 14
The 3rd chapter matches a set of characters 15
3.1 matches one of several characters 15
3.2 Using the character set to fit the interval 17
3.3 Take non-matching 21
3.4 Summary 22
The 4th chapter uses meta-characters 23
4.1 Escaping a special character 23
4.2 Matching whitespace characters 26
4.3 Match a specific character category 28
4.3.1 matching numbers (with non-digits) 28
4.3.2 matches letters and numbers (with non-letters and numbers) 29
4.3.3 matching whitespace characters (with non-whitespace characters) 31
4.3.4 matching hexadecimal or octal values 31
4.4 Using the POSIX character class 32
4.5 Summary 34
5th repeat match 35
5.1 Number of matches 35
5.1.1 matches one or more characters 36
5.1.2 Match 0 or more characters 39
5.1.3 Match 0 or one character 41
5.2 Number of repetitions matched 43
5.2.1 set an exact value for the number of repeat matches 44
5.2.2 set an interval of 45 for repeat match times
5.2.3 Match "At least repeat" 46
5.3 Preventing over-matching 47
5.4 Summary 49
6th Position Matching 50
6.1 Boundary 50
6.2 Word Boundary 51
6.3 String Bounds 54
6.4 Summary 59
Chapter 7th using sub-expressions 60
7.1 What is a sub-expression 60
7.2 Sub-expression 61
7.3 Nesting of sub-expressions 65
7.4 Summary 67
8th Retrospective Reference: Consistency match 68
8.1 Backtracking references What's the use of 68
8.2 Backtracking Reference Match 71
8.3 Backtracking references in the substitution operation 74
8.4 Summary 79
The 9th Chapter search and find 80
9.1 Look Around 80
9.2 Looking forward 81
9.3 Looking backwards 83
9.4 Combining forward lookup and backward lookup 86
9.5 pairs of front and back lookup take not 87
9.6 Summary 89
10th. Embedding Conditions 90
10.1 Why to embed condition 90
10.2 Conditions in regular expressions 91
10.2.1 Backtracking Reference Condition 91
10.2.2 search conditions before and after 94
10.3 Summary 96
Appendix A regular expressions in application software and programming languages 97
Appendix B Regular Expression solutions for frequently asked Questions 110
Appendix C Regular Expression Tester 128

"Regular expression must know" reading

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.