add ^$ to some of the regex to make this easier to work with.