register can take an array of keys and regular expressions