Build, test, and debug regular expressions
This regex validates sequences composed of denomination tokens (25, 10, 5) for a slot machine (máquina tragamonedas) system. It enforces specific starting patterns through deeply nested alternations that encode transition rules, ensuring sequences begin with a valid multi-token combination before allowing any additional denomination tokens to follow. The complex structure resembles a state machine for validating bet sequences or coin input order.