complete todo4, code isn't working currently because the number of matches isn't correct. Used regex to do it.