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

[REBOL] Finding the previous value in a string Re:

From: galtbarber:mailandnews at: 11-Aug-2000 17:32

Here are several ways to do it: blk: [This is a block with some words] i: find blk 'with print first back i print first skip i -1 print first at i string: "This is a string with some words" blk: parse/all string " " print first back find blk "with" i: find string " with" j: find/reverse i " " print copy/part next j i -Galt