Bloomberg interview question

Regular expression matching