Recipe 22.0. Introduction Recipe 22.1. Switching from ereg to preg Recipe 22.2. Matching Words Recipe 22.3. Finding the nth Occurrence of a Match Recipe 22.4. Choosing Greedy or Nongreedy Matches Recipe 22.5. Finding All Lines in a File That Match a Pattern Recipe 22.6. Capturing Text Inside HTML Tags Recipe 22.7. Preventing Parentheses from Capturing Text Recipe 22.8. Escaping Special Characters in a Regular Expression Recipe 22.9. Reading Records with a Pattern Separator Recipe 22.10. Using a PHP Function in a Regular Expression |