中间用“|”连接两个Tag
findTitle = re.compile(r'<div class="title">\n<a href=".*">\n<img src=".*"/>\s*(.*?)\s*</a>'|'<div class="title">\n<a href=".*">\n\s*(.*?)\s*</a>')
运行出错:
TypeError: unsupported operand type(s) for |: 'str' and 'str'
请问这种情况正则表达式改怎么写呢?