match dashes and underscores in attribute names