The pattern matching swiss knife