solved the mystery of why only some of the regexes were working. apparently the regexes wanted to be inline instead of as a variable. but only sometimes.