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

[REBOL] Re: Parsing html specific block

From: greggirwin:mindspring at: 13-Apr-2004 9:28

Hi Philippe, llff> How parse a html file containing some <tr>...</tr> blocks like : .... llff> BUT just keep <tr>..</tr> blocks containing specific strings like "KO" and llff> reform the html file with them inside original <table>...</table>. Something like this? rules: [ any [ copy text thru <tr> (print text) copy text to </tr> ( if find text "KO" [print text] ) ] copy text to end (print text) ] Though this naively assumes that your <tr></tr> sections don't have anything between them that you want to ignore, so it's not a complete solution. -- Gregg