Sdt chapter7

I did something similar. I was hoping that there would be a way of doing an and in a regex but maybe not.