Rebol 程式設計/suffix?
外觀
SUFFIX? path
返回檔名或 URL 的字尾(副檔名),否則返回 NONE。
SUFFIX? 是一個函式值。
- path -- (型別: any-string)
suffix?: func [
{Return the suffix (ext) of a filename or url, else NONE.}
path [any-string!]
][
if all [
path: find/last path #"."
not find path #"/"
] [to-file path]
]