chp 6 exercises: update regex and testing