Hey everyone... 

I am doing a bit of html scraping and need to
get the content from between the <pre> tags.. the html surrounding
the <pre> tags may change so a simple replace wont do.. any regexp
ppl have a solution for this.. (or non regexp ppl) ;)

I want to extract (which is dynamic of course so there will be
a lot of variation as far as row count and string length):

27784120050104173030,0,1,Ascot Vale
54231720050505005815,0,1,Ascot Vale
57192820050526232508,0,1,Ascot Vale
55920620050519113514,0,1,Ascot Vale

Cheers,
Adam

HTML returned is below.

==================================================================

<html>
<head>
<title>Yeah Yeah</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"
bgcolor="#FFFFFF">
<table width="770" border="0" cellpadding="0" cellspacing="0"
bgcolor="#01266B">
  <tr>
    <td>
    
<img src='http://realestateview.com.au/images/rev_ms_logo1.gif'
width='266' height='47'>    
    </td>
    <td align="right"><span class="heading1"><font color="#FFFFFF"
face="Arial, Helvetica, sans-serif">List</font></span></td>
    <td width="10">&nbsp;</td>
  </tr>
</table>
<div style ="margin-left: 10px">

<pre>

27784120050104173030,0,1,Ascot Vale
54231720050505005815,0,1,Ascot Vale
57192820050526232508,0,1,Ascot Vale
55920620050519113514,0,1,Ascot Vale

</pre>

<br>
<table border="0" cellspacing="0" cellpadding="0" width="760">
<tr>
 <td align="center">
  <font face="verdana,arial,helvetica" size="1"
color="#666666">Wazzup!!<font>
 </td>
</tr>
</table>
</div>
</body>
</html>
<br/>

==================================================================

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to