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

[REBOL] Re: Find? Copy/Part?

From: ingo:2b1 at: 18-Jan-2005 23:38

Hi Carlos, here are the first 4 ideas I got
>> profiler/test [index? find next find str #"*" #"*"] 100000
== [0:00:00.213723]
>> profiler/test [parse str [2 [thru "*"] here: (pos: subtract index?
here 1)]] 100000 == [0:00:00.156568]
>> profiler/test [parse str [2 [thru #"*"] here: (pos: subtract index?
here 1)]] 100000 == [0:00:00.14909]
>> profiler/test [parse str [thru #"*" to #"*" here: (pos: index? here
)]] 100000 == [0:00:00.106628] As you'll clearly notice, parse is your friend ;0) I hope that helps Ingo Carlos Lorenz wrote: