- On Pattern Matching and Text Processing
- 4.1 Searching for a Pattern in Files
- 4.2 Match Delimiters
- 4.3 Simple Regular Expressions
- 4.4 Alternation
- 4.5 Anchoring
- 4.6 Grouping and Remembering a Sub-Pattern
- 4.7 Three Useful Functions: split, join and grep
- 4.8 Match Modifiers
- 4.9 Reading Multiple Lines From A File In One Read Operation
- 4.10 Substituting A Pattern: The s/// Operator
- 4.11 Finding Citations: Another try
- 4.12 eval, Pattern Matching and Rule-Based Programming
- 4.13 Conclusions
- 4.14 Exercises