Re: Fast replace
Tom (Tom.Conlin)
8-Aug-2008/2:43:21-4:00
#44177
<Back Thread Next>
<Back Index Next>
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
<Back Thread Next>
<Back Index Next>REBOL.com