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

[REBOL] Repeat pattern Re:

From: jsc:dataheaven at: 1-Oct-2000 19:53

On Sun, 01 Oct 2000, you wrote:
> Let suppose this rule: > 12 [thru "<table>" copy text to "</table>"] > > How to modify the syntax if you want to do it not 12 times but only the > 12th time ?
Not tested but... counter: 0 tables: [] parse mypage [some [thru "<table> copy text to "</table>" (if (counter // 12) = 0 [append tables text] counter: counter + 1) ] ]