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

[REBOL] Re: A little parse help

From: g:santilli:tiscalinet:it at: 21-Aug-2001 19:20

Hello Stefan! On 20-Ago-01, you wrote: SF> if find content "http://" [ SF> parse/all content [ SF> any [ SF> to "http://" copy URL to "<br>" ( SF> link: rejoin [{<a href="} URL {">} URL {</a>}] SF> replace content URL link SF> ) SF> ] SF> ] SF> ] Maybe this will work better (not tested): parse/all content [ any [ to "#http://#" mark1: to "<br>" mark2: ( link: rejoin [{<a href="} URL: copy/part mark1 mark2 {">} URL {</a>}] mark1: change/part mark1 link mark2 ) :mark1 ] ] Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/