The .subn() method wasn't setting _num_regs, which is used by the .groups()
	method, so .groups() didn't work inside the replacement function
	called by re.sub.  One-line fix: set self._num_regs inside subn().
1 file changed