Pattern Matching

1. Introduction

2. Copying and Substituting Simultaneously

3. Matching Letters

4. Matching Words

5. Commenting Regular Expressions

6. Finding the Nth Occurence of a Match

7. Matching Multiple Lines

8. Reading Records With a Pattern Separator

9. Extracting a Range of Lines

10. Matching Shell Globs as Regular Expressions

11. Speeding Up Interpolated Matches

12. Testing for a Valid Pattern

13. Honoring Locale Settings in Regular Expressions

14. Approximate Matching

15. Matching from Where the Last Pattern Left Off

16. Greedy and Non-Greedy Matches

17. Detecting Duplicate Words

18. Expressing AND, OR, and NOT in a Single Pattern

19. Matching Multiple-Btye Characters

20. Matching a Valid Mail Address

21. Matching Abbreviations

22. Program: urlify

23. Program: tcgrep

24. Regular Expression Grabbag