House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  New York ColdFusion Users Group (NYCFUG)

url stipper

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Piece o' cake.
Robert Jules Siegel
11/17/04 11:07 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Walters
11/17/2004 10:29 AM

I have a large text file with alot of xml garble.  I need to strip out all the url's Example: <Topic r:id="Top/Sports/Golf/Software">   <catid>30360</catid>   <link r:resource="http://fairwayfiles.com"/>   <link r:resource="http://www.goforgolf.com/"/>; </Topic> <ExternalPage about="http://fairwayfiles.com">   <d:Title>Fairway Files Handicap System</d:Title>   <d:Description>A free web based golf handicap tracking and golf course rating system. Calculate handicaps, create groups, print match scorecards, track and graph scores, review courses.</d:Description>   <topic>Top/Sports/Golf/Software</topic> </ExternalPage> Any ideas on how to do this with CF where it takes out just the URL so I get: http://fairwayfiles.com http://www.goforgolf.com http://fairwayfiles.com Thanks.....Rob

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Jules Siegel
11/17/2004 11:07 AM

Piece o' cake. Consider the text file (in memory) as a CF list with " (chr(34)) as the delimiter. Loop thru the list. Any list items starting with 'http:' are the URLs you are looking for. Robert Walters wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search nycfug

March 20, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31