提取字符串中括号内的字符
s = "a(bb)ccc(dddd)eeeee{f}"
print(re.findall(r"\(.*?\)", s))
print(re.findall(r"[(](.*?)[)]", s))
>>['(bb)', '(dddd)']
['bb', 'dddd']
print(re.findall(r"\(.*\)", s))
print(re.findall(r"[(](.*)[)]", s))
>>['(bb)ccc(dddd)']
['bb)ccc(dddd']