Pregunta de entrevista de Apple

What is semantics? What does regular expression mean?