万能正则表达式

<a[\s\S]*?href=("|')(?P<link>[^\1]*?)\1[\s\S]*?<img[\s\S]*?src=("|')(?P<img>[^\3]*?)\3

原文地址:https://www.cnblogs.com/lexus/p/1940623.html