Pergunta de entrevista da empresa Meta

Write code to match a regular expression to a string.