def subn(self, repl, string, count): return re_sub_ex(self.pattern, self.compiled, repl, string, count, self.flags) # -- Parser ------------------------------------------------------------------