def __init__(self, column, pattern, flags=re.IGNORECASE, advanced=False):
        "Initializes comparison object for specified column."
        self.__column = column
        if not advanced:
            pattern = '^' + pattern + '$'
        self.__method = re.compile(pattern, flags).search
Initializes comparison object for specified column.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py