Move regex matching of extension attributes and names into own predicates