Pregunta de entrevista de Meta

Write code to match a regular expression to a string.