Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了让它忽略空标签,我应该在我的正则表达式中包含什么?
您需要指定引号之间至少需要 1 个字符:
所以是这样的:
(title|alt)="(.+)"