reguller expression
Posted: Mon Mar 05, 2007 4:53 am
from a big html i want i to fetch this:
This i want to do with preg_match() function
I think my reguller expression can start like:
but how to close it?
any help?
thank you
Code: Select all
<ul class="linklist16">
<li><a href="art.php?id=3">Camilla to undergo major operation</a></li>
<li><a href="art.php?id=3741703">'SAS bid to free kidnapped Britons'</a></li>
<li><a href="art.php?id=3761180">Big rise in 999 ambulance call-outs</a></li>
<li><a href="art.php?id=3614991">Stephen Hawking to go weightless</a></li>
<li><a href="art.php?id=3760313">New intervention over email report</a></li>
<li><a href="art.php?id=3760314">Diana pre-inquest hearing under way</a></li>
<li><a href="art.php?id=3745484">Zeebrugge victims remembered</a></li>
<li><a href="art.php?id=3747337">Presidential hopefuls hit town</a></li>
<li><a href="art.php?id=3691839">Tornadoes in the US kill 20</a></li>
</ul>I think my reguller expression can start like:
Code: Select all
^<ul class="linklist16">any help?
thank you