Pergunta de entrevista da empresa Apple

What is semantics? What does regular expression mean?