Fixed regex bug that was picking up too much footer

use a regular expression to solve a problem, now you have two
problems...