Untitled
public text v1 · immutable// assign a regex pattern to match the <a id="content:4" href="Mortgage/Calculator.html"> from page contents
$pattern = '/<a id="content:\d+"\s+href="[^"]+">/Ui';
// get all matches
preg_match_all($pattern,$content,$matches);