Select elements by testing attribute values with regexes.