Pregunta de entrevista de Amazon Web Services

Constructing a regular expression based on a given input pattern