Wrapping regexp alternations in (?>...) is something I do by default. While there may be rare cases where this might be problematical, I haven't encountered any: it's something that doesn't hurt and, indeed, often helps.

This usage is based on a "Perl Best Practices" guideline: Backtracking (page 269). It's summarised on page 271 as: