Answers to the regex exercise