[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/