if __name__ == '__main__': text = "2021-10-15 13:29:12:178961 [INFO] send http end(6bfee95e-a493-4074-b037-22b5678fee37)" pattern = re.compile(r'send http end[(](.*?)[)]') result = re.findall(pattern,text) print("result = ",result)
输出为:
result = ['6bfee95e-a493-4074-b037-22b5678fee37']
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)