added solutions to exam and updated regex compiler