Books & Videos

Table of Contents

  1. Chapter 1 What Is a Regular Expression?

    1. Getting Started with Regexpal

    2. Matching a North American Phone Number

    3. Matching Digits with a Character Class

    4. Using a Character Shorthand

    5. Matching Any Character

    6. Capturing Groups and Back References

    7. Using Quantifiers

    8. Quoting Literals

    9. A Sample of Applications

    10. What You Learned in Chapter 1

    11. Technical Notes

  2. Chapter 2 Simple Pattern Matching

    1. Matching String Literals

    2. Matching Digits

    3. Matching Non-Digits

    4. Matching Word and Non-Word Characters

    5. Matching Whitespace

    6. Matching Any Character, Once Again

    7. Marking Up the Text

    8. What You Learned in Chapter 2

    9. Technical Notes

  3. Chapter 3 Boundaries

    1. The Beginning and End of a Line

    2. Word and Non-word Boundaries

    3. Other Anchors

    4. Quoting a Group of Characters as Literals

    5. Adding Tags

    6. What You Learned in Chapter 3

    7. Technical Notes

  4. Chapter 4 Alternation, Groups, and Backreferences

    1. Alternation

    2. Subpatterns

    3. Capturing Groups and Backreferences

    4. Non-Capturing Groups

    5. What You Learned in Chapter 4

    6. Technical Notes

  5. Chapter 5 Character Classes

    1. Negated Character Classes

    2. Union and Difference

    3. POSIX Character Classes

    4. What You Learned in Chapter 5

    5. Technical Notes

  6. Chapter 6 Matching Unicode and Other Characters

    1. Matching a Unicode Character

    2. Matching Characters with Octal Numbers

    3. Matching Unicode Character Properties

    4. Matching Control Characters

    5. What You Learned in Chapter 6

    6. Technical Notes

  7. Chapter 7 Quantifiers

    1. Greedy, Lazy, and Possessive

    2. Matching with *, +, and ?

    3. Matching a Specific Number of Times

    4. Lazy Quantifiers

    5. Possessive Quantifiers

    6. What You Learned in Chapter 7

    7. Technical Notes

  8. Chapter 8 Lookarounds

    1. Positive Lookaheads

    2. Negative Lookaheads

    3. Positive Lookbehinds

    4. Negative Lookbehinds

    5. What You Learned in Chapter 8

    6. Technical Notes

  9. Chapter 9 Marking Up a Document with HTML

    1. Matching Tags

    2. Transforming Plain Text with sed

    3. Appending Tags

    4. Transforming Plain Text with Perl

    5. What You Learned in Chapter 9

    6. Technical Notes

  10. Chapter 10 The End of the Beginning

    1. Learning More

    2. Notable Tools, Implementations, and Libraries

    3. Matching a North American Phone Number

    4. Matching an Email Address

    5. What You Learned in Chapter 10

  1. Appendix Regular Expression Reference

    1. Regular Expressions in QED

    2. Metacharacters

    3. Character Shorthands

    4. Whitespace

    5. Unicode Whitespace Characters

    6. Control Characters

    7. Character Properties

    8. Script Names for Character Properties

    9. POSIX Character Classes

    10. Options/Modifiers

    11. ASCII Code Chart with Regex

    12. Technical Notes

  2. Regular Expression Glossary

  3. Colophon