Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formating a stringed html

Status
Not open for further replies.

biry

Technical User
Nov 5, 2004
127
0
0
CA
Hi, i have an html page as a string, i've used
sFileExt = mid(strRetval, 5418)
to strip unuseful html code. How can i also strip the tail end of the html?

this is the tail end i want to strip off:
Code:
<P>
<i>[URL unfurl="true"]http://www.company.com/cgi-bin/browse</i><BR>[/URL]
<!-- BEGIN FOOTER -->
<HR SIZE="1">
</div>
<table width="100%" border=0>
<tr valign="top">
<td class="footer"><a href="/index.htm">Home</a> | <a href="/folder/searc/wsrs.htm">Search Home</a> | <a href="javascript:history.back()">Previous Page</a></td>
<td align="right" valign="top"><h6>Modified:03/12/2002</h6></td>
</tr>
</table>
</font>

</body>
</html>
 
i could use the replace and just replace each line at a time with nothing, but i thought there must be an easier way. thanks
 
basically i would like to remove all text between and including <P> to </html>

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top