python 正则

匹配换行符

re.DOTALL

ps:

pattern = r'APIResponse\((.*)\)'
add_rule_response = re.findall(pattern,str(add_rule_response),flags=re.DOTALL)
posted @ 2020-12-10 15:10  鲁哒哒  阅读(54)  评论(0编辑  收藏  举报