testContent = refindalltestResult +strdata匹配不到值 需要匹配换行的数据
可以尝试使用re.DOTALL标志来匹配换行符,例如:
testContent = re.findall(r'"testResult": (.+?)]', str(data), re.DOTALL)
原文地址: https://www.cveoy.top/t/topic/bOAG 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以尝试使用re.DOTALL标志来匹配换行符,例如:
testContent = re.findall(r'"testResult": (.+?)]', str(data), re.DOTALL)
原文地址: https://www.cveoy.top/t/topic/bOAG 著作权归作者所有。请勿转载和采集!