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

[REBOL] Re: newbie parsing question

From: agem:crosswinds at: 4-Mar-2001 0:22

>> a: {/some-path/AAA00000s12.jpg}
== "/some-path/AAA00000s12.jpg"
>> jpg: head reverse ".jpg"
== "gpj."
>> parse head reverse a [thru jpg copy b to "s" to end]
== true
>> b: head reverse b
== "12" rebol-parse has no backtracking like perl, sadly. Comming from left is difficult in this case IMO. something like parse tail a [reverse thru ».jpg« copy b to »s« to end] would be nice for such cases.. Volker
>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
Am 03.03.01, 19:39:42, schrieb "John Sequeira" <[jseq--mediaone--net]> zum Thema [REBOL] newbie parsing question: