<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scan_line(self, line, regex):
 """Checks if regex is in line, returns bool"""

        return bool(re.search(regex, line, flags=re.IGNORECASE))