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

[REBOL] Parsing optional tags

From: geza67:freestart:hu at: 4-Nov-2001 16:00

Hello REBOLers, Beyond View-related stuff, IMHO parsing is the most underdocumented but most powerful feature of REBOL. Now I am stucking with a rather trivial problem : I want to collect texts embedded in tags: <b>some_text</b> or <b><i>some_text</i></b> Finding the beginning of the text is obvious, but matching the closing tags is NOT symmetrical :-( - as I thought: parse html [any [ thru <b> [<i> | none] copy Collect to [</i> | none] </b> (append Collects Collect) ]] ... does not work as expected: Collects is full of 'none values. Could you help me, please? -- Best regards, Geza Lakner MD mailto:[geza67--freestart--hu]