Use a regex in class_name rule