Add in the ability to specify a regex as a match. This is a simple usage of preg_match for matching up regex to appid.