Change get_verb function to use a regex.