Currently `summary` and `body` can use the `~=` operator for a POSIX regex match. Generalize this so that any string criteria can be matched using a regex. Could replace `strcmp` calls with a function that accounts for both.