我目前正在使用 python 处理正则表达式。我对 python 中的正则表达式很陌生。作为我学习的一部分,我有以下问题String1 = "[hello]"Result = re.sub(re.compile("[.*?]>"),"", Result)print(string)现在我Result应该什么都不是但如果 String1 = "[*hello]"那么我的结果应该是 [*hello]帮我解决这个问题
添加回答
举报
0/150
提交
取消