def METHOD_NAME(self, pattern, string, flags=0):
    """
    Searches for passed pattern in passed string.
    :param pattern: Pattern to find. Regular expression.
    :param string: String to scan through to find the pattern.
    :param flags: Flags for search.
    :return: Match object.
    """
    self._match = METHOD_NAME(pattern, string, flags)
    return self._match