Using the built-in pattern validation