python正则表达式多次提取数据(一个规则提取多组数据)

import re
ttt='"FileName":"陈雪凝 - 绿色<\/em>","AlbumID":"15270740","ID":"130480126","SuperFileSize":0,"QualityLevel":3,"SQFileHash":"7B7A306B0000C77B85C300E80BCF3A2C","AlbumName":"绿色","HQPrivilege":10,"SuperBitrate":0,"SuperDuration":0,"MixSongID":"130480126","ResFileHash":"AD2FC906A25"'

res = re.findall('\"FileName\":\"([^\"]+)', p, re.I | re.M)#I是忽略大小写,M是匹配多次
print(res)





你可能感兴趣的:(python正则表达式多次提取数据(一个规则提取多组数据))