【发布时间】:2018-02-26 14:40:04
【问题描述】:
假设我们加载了这个问题的源代码,我们想在“childUrl”旁边找到url
或转到本站源代码并搜索“childUrl”。
<?php
$sites_html = file_get_contents("https://stackoverflow.com/questions/46272862/how-to-find-urls-under-double-quote");
$html = new DOMDocument();
@$html->loadHTML($sites_html);
foreach() {
# now i want here to echo the link alongside "childUrl"
}
?>
【问题讨论】:
标签: php regex parsing url preg-match