我希望在PHP中使用干净的正则表达式来将某些类型的资产的域从可能包含多个资产(图像、javascripts等)的urls的字符串中转换出来,以获得一些帮助。例如:
$string = 'Some content including image tags <imgsrc="http://domain.com/image.png" /> and imageurls http://domain.com/image.png and ja
'The Rio Olympics Are Where TV Finally Sees the Future',
description: '<div class="rss_thumbnail"><imgsrc="http://www.wired.com/wp-content/uploads/2016/08/GettyImages-587338962-660x435.jpg" alt="The