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

[REBOL] Re: Fast replace

From: Tom::Conlin::gmail::com at: 7-Aug-2008 23:40

Kai Peters wrote:
> Hi ~ > > given a series like > > [ > "joe" 155 a-word [ another-word 122 22 "word" "-" [ more-words 122 "' ] > ] > ] > > what is a *fast* way to replace all occurrences of "-" with another string? > > Note that the nesting levels and series composition may vary. > > Thanks for all suggestions > > Kai
rule: [any[into rule |["-" here: (change back :here "foo")]| skip]] parse blk rule