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

[REBOL] Re: Quote character replacement

From: rgaither:triad:rr at: 26-Feb-2001 15:42

Hi Gabriele,
>Then I can imagine what Elan's going to propose: replace all >newlines with a space.
Another novel approach to the real problem, not just what I asked for. :-)
>Anyway, just for fun, let's try converting those quotes. > >>> rule: [any [to {"} mark: skip (change mark "{") to {"} mark: skip (change mark "}")]] >== [any [to {"} mark: skip (change mark "{") to {"} mark: skip (change mark "}")]]
Excellent! Both a solution and a lesson in parse at the same time. :-)
>it {should} be able to {convert your >quotes} as long as they are balanced. >{Hope this helps.} >}
They are, thanks a bunch. Rod. Rod Gaither Oak Ridge, NC - USA [rgaither--triad--rr--com]