This tested snippet should do it: import re line = re.sub(r"</?\[\d+>", "", line). Edit: Here's a commented version explaining how it works:
確定! 回上一頁