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

[REBOL] Re: truble with " * " all characters recognizing

From: rotenca:telvia:it at: 11-Dec-2002 0:30

Hi Andrew and all,
> Here's a slightly smaller version of 'suffix? that I use: > > >> source suffix? > suffix?: func [ > {Return the extension of a path as a file!, else none.} > Path [file! url!] > ][ > all [ > Path: find/last Path #"." > not find Path #"/" > to-file Path > ] > ]
try this: find/last/match/tail/any x ".*" four time faster than suffix? on my system. --- Ciao Romano