Pattern Meaning
(in|out)put Match input or output
\d{5}(-\d{4})? US zip code ("+ 4" optional)
Parser tries EACH alternative if match fails after group.

Can lead to catastrophic backtracking.

Comments