Maybe this will be helpful. This was code I used to rewrite bulletin boards stripped down to just messages and made local using variables. I used the rereplace function:

<cfhttp URL="">   method="get"
  resolveurl="true"></cfhttp>

<cfscript>
// Modify all links to local second agent page with variable
links = ReReplaceNoCase(#cfhttp.filecontent#,
"http://messageboards.ivillage.com/n/mb/message.asp?webtag=iv-ppplaynov97n&msg="
, "pp2.cfm?id=", "All");
// Replace 'nogifs' in links with nothing
links2 = ReReplaceNoCase(#Variables.links#, "wintext", "", "All");
// Find point in content to strip to from beginning of file
count = Find("<table border=0 cellpadding=10 cellspacing=0>", #variables.links2#
) -1;
// Remove from beginning to the above point
postlist = RemoveChars("#variables.links2#", 1, #variables.count#);
// Remove from beginning to the above point
postlist = RemoveChars("#variables.links2#", 1, #variables.count#);
// Display everything left of the <script>tag.
postlist = left(postlist, findnocase("Roll Calls</span>", postlist) -1);
</cfscript>

<cfoutput>
#postlist#
</cfoutput>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to