What I've been trying to do is get a bunch of publication entires into a database from an html file. The html file looks something like this:
Code: Select all
<h3 align="center">2002</h3>
<p>Here's a sample publication</p>
<p>Publication number 1</p>
<p>Publication with <b>HTML tags</b> in it</p>
<h3 align="center">2001</h3>
...Code: Select all
preg_match_all("/<p>(.*)<\/p>/", $message, $results);This is my latest attempt:
Code: Select all
preg_match_all("/>2002<.*(<p>(.*)<\/p>.*)+>2001</", $message, $results);