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

[REBOL] A better Suffix? function

From: al:bri:xtra at: 6-Aug-2002 23:11

>> source suffix?
suffix?: func [ {Return the extension of a filename or URL, else none.} Path [file! url!] ][ all [ Path: find/last Path #"." not find Path #"/" Path ] ] It's a couple of words shorter and keeps the original type, either file! or url!, and allows it's use in filename and path extraction functions. Andrew Martin ICQ: 26227169 http://valley.150m.com/