Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Parsing HTML links (newbie question)

From: james::calaba::com at: 13-Jun-2001 12:49

Hi I've been looking through the documentation for parsing links from an HTML page with the structure .......<a someAttr="abc" href="def" someOtherAttr="ghi">link text goes here</a>........ I currently have parse page [ any [ thru {href="} copy link to {"} (do something) ] ] I really want to pick up the link text as well, so that I can create link/linkText pairs. I know this is a trivial problem - is the answer to use blocks of rules and break the <a> tag down piece by piece, or to mark the positions and then extract subsequently, or is there a one-pass solution (there probably is). Many thanks if you can help. James Carlyle