<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def column(self, colregex):
        'Return first column whose Column.name matches colregex.'
        for c in self.columns:
            if re.search(colregex, c.name, regex_flags()):
                return c