don't use pattern matching in scala regex example, Matei thinks it might be too distracting