<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_message(self, message, regex):
 """Scans regex from msg and returns the line that matches Keyword arguments: message -- A (long) string, e.g. email body that will be scanned. regex -- A regular expression string that the message will be scanned against. Returns: Matching line or empty string """

        for line in message.split("\n"):
            if bool(re.search(
                    regex,
                    line,
                    flags=re.IGNORECASE|re.MULTILINE)):
                return line
        return ""