def find_all(self, pattern, flags = 0, fmt = None, extractions = None): if fmt == None: return sublime_api.view_find_all(self.view_id, pattern, flags) else: results = sublime_api.view_find_all_with_contents(self.view_id, pattern, flags, fmt) ret = [] for region, contents in results: ret.append(region) extractions.append(contents) return ret