Files
Auto_Bangumi/test/test2.py
2022-05-18 22:40:25 +08:00

10 lines
246 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import re
import requests
name = "[IET字幕组][闪电十一人 FF篇][01][1080P][WebRip][繁日双语][AVC AAC][MP4]"
split_rule = r"\[|\]|\【|\】|\★|\|\|\(|\)"
n = re.split(split_rule, name)
while '' in n:
n.remove('')
print(n)