One possible solution is:
>> stuff: [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r %instinet.r~
[ %lconfig.r %lconfig.r~ %nntp.r %notes.html %rebdoc.r %dummy.ftp
[ %dummy2.ftp~ %readby.ftp]
== [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r %instinet.r~
%lconfig.r %lconfig.r~ %nntp.r %notes.html %rebdoc.r %dummy.ft...
>> foreach thing stuff [
[ print [
[ thing "^-"
[ either parse/all thing [thru "r~"] ["pass"]["fail"]
[ ]
[ ]
cast.r fail
feedback.r fail
ftp.r fail
ftp.r~ pass
instinet.r fail
instinet.r~ pass
lconfig.r fail
lconfig.r~ pass
nntp.r fail
notes.html fail
rebdoc.r fail
dummy.ftp fail
dummy2.ftp~ fail
readby.ftp fail
>>
This depends on the fact that the parse only succeeds if it can find
"r~"
and, in doing so, arrive at the end of the string.
HTH,
-jn-
[EMAIL PROTECTED] wrote:
>
> 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
>
> Get your FREE Email and Voicemail at Lycos Communications at
> http://comm.lycos.com