私はPythonのre.sub関数を使用してテキストを置き換えようとしています。その後Python: number逆参照で
>>> import re
>>> text = "<hi type=\"italic\"> the></hi>"
>>> pat_error = re.compile(">(\s*\w*)*>")
>>> pat_error.search(text)
<_sre.SRE_Match object at 0xb7a3fea0>
>>> re.sub(pat_error, ">\1", text)
'<hi type="italic">\x01</hi>'
テキストの値は、あなたのコード内の
"<hi type="italic"> the</hi>"
これは本当に問題ではありません... –