category = re.findall('(?<=compatible; )([^/]+)', line) category = re.findall('(?<="-" ")([^"]+)', line)
怎么让category同时匹配这两个正则里面的数据
两句正则怎么并到一起
因为这样写的话他只认下面那个正则
人生最曼妙的风景,竟是内心的淡定与从容!
re.findall('(?<=compatible; )([^/]+) | (?<="-" ")([^"]+) ', line)
re.findall('(?<=compatible; )([^/]+) | (?<="-" ")([^"]+) ', line)