こんにちは、誰かが私の preg_match を手伝ってくれたら、このコードからタイトルが欲しいです
<dt class="gallery-icon">
<a href="?attachment_id=31" title="title">
<img width="150" height="150" src="librosdefirmas-bodas-1-150x150.jpg" class="attachment-thumbnail" alt="Caption">
</a>
</dt>
私はこれを持っています:
preg_match_all('/<dt class="gallery-icon">\s*<a href="(.*)" title="(.*)".*>/is', $page_columns[0], $titles);
しかし、それは私を助けることができますか?