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

[REBOL] [Feature request] FIND vs PARSE

From: Rebolinth::nodep::dds::nl at: 30-Jul-2003 15:45

Hello All / RT, As there is no option inside PARSE function that returns the parsed delimiters (only the result) doing a walkthru, a FIND or PARSE enhancement might be usefull? # First # Basicly a migration of the PARSE actions to the FIND function. (|) skip with thru to The idea comes from the fact that PARSE does a complete walktrhu the series while FIND stops at the point where it finds. This means that find needs an extention with a loop function to behave like PARSE. a: {.....endlessly long string......endlessly long string.....} find a [ thru "endlessly" copy b to "string" ] find a [ 3 "." ] find a [ "." | "," ] # second # a new PARSE option: /inverse a: {.....endlessly long string......endlessly long string.....}
>>parse/inverse a [ "long" ]
== [ "" "" "" "long" "" "" "" "long" "" "" ""] (R)egards, Norman.