match a pattern against a value