Use regular expressions rather than array-inclusion to determine matches in helpers