(self, text)
return ''
Finds filenames of crashed applications using a regular expression.

        Args:
            text: String that might contain the filename

        Returns:
            The string with filename if found
Finds filenames of crashed applications using a regular expression.
Finds filenames of crashed applications using a regular expression .
def extract_filename(self, text):
        """Finds filenames of crashed applications using a regular expression.

        Args:
            text: String that might contain the filename

        Returns:
            The string with filename if found
        """
        if '.exe' in str(text or '').lower():
            match = self.FILENAME_REGEX.search(text)
            if match:
                # The regex can match on full file paths and filenames,
                # so only return the filename.
                return min([m for m in match.groups() if m])
        return ''
def extract_filename ( self , text ) : if '.exe' in str ( text or '' ) . lower ( ) : match = self . FILENAME_REGEX . search ( text ) if match : # The regex can match on full file paths and filenames, # so only return the filename. return min ( [ m for m in match . groups ( ) if m ] ) return ''