[REBOL] Second request for help: globbing on a block of filenames Re:
From: johnkenyon:ibm at: 7-Sep-2000 8:47
Hi,
Or even -
test-for-ext: func [
"Search a block for items ending with the given string. Returns TRUE or
FALSE"
value [string!]
data [block!]
] [
foreach item data [
if find/last item value [ return true ]
false
]
]
cheers, john
I have a block which contains filenames. I would like to get a true or
false value back indicating whether or not there is a filename in the block
that terminates with a r~ extension.
Please show me how to do this.
>> a
== [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r %instinet.r~ %lconfig.r
%lconfig.r~ %nntp.r %notes.html %rebdoc.r
%rebol.exe %re...
Could someone show me how to glob for feedback.r?
In other words, I want to say