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

[REBOL] Re: Reverse Parsing

From: joel:neely:fedex at: 27-Sep-2001 15:52

Andrew beat me to it... Andrew Martin wrote:
> > Is there an easy, obvious, way that I can't see to parse > > backwards with alternation capabilities? For example, ... > > Would reverse-ing the string first, then parse-ing work for you? > > >> s: "a word at last ^-" > == "a word at last ^-" > >> head reverse s > == "^- tsal ta drow a" >
... but remember to reverse the parsed results afterwards! reverse string parse to extract item(s) of interest reverse extracted item(s) -jn- -- This sentence contradicts itself -- no actually it doesn't. -- Doug Hofstadter joel<dot>neely<at>fedex<dot>com