python正则表达式过滤

strr=r'045-夜总.....夜(6人封闭).zip.zip'
re.sub(r'\d+-|(.zip)|[(](.*?)[)]', "",strr)

输出结果

夜总.....夜

posted on 2021-08-12 17:50  耀扬  阅读(345)  评论(0编辑  收藏  举报

导航