A string method solves the problem just as well (simpler is better) - The pattern would be unreadable (more than ~30 characters — consider breaking it up) - You're trying to parse a structured format like HTML or JSON (use a proper parser) - You're trying to match natural language meaning, not struc