move regex config to same constants as everything else #1