[REBOL] Re: find in a block doesn't find ?
From: volker nitsch:crosswinds at: 21-Jun-2001 22:25
RE: [REBOL] find in a block doesn't find ?
[peoyli--algonet--se] wrote:
>
> Hi,
>
> Noticed this one..
>
> files: [
> %310-009_2001-03.tar.gz %desc
> %qotd-2000-12-28.txt %qotd-2001-02-28.txt %qotd-2001-03-02.txt
> %qotd-2001-03-03.txt %qotd-2001-03-04.txt %qotd-2001-03-05.txt
> %qotd-2001-03-06.txt %qotd-2001-03-07.txt %qotd-2001-03-08.txt
> ]
>
> >> find/any files %qotd-2001-03*
> == none
> >> find/any files %qotd-2001-03-04*
> == none
> >> find/any files %qotd-2001-03-04.txt*
> == none
> >> find/any files %qotd-2001-03-04.txt
> == [%qotd-2001-03-04.txt %qotd-2001-03-05.txt
> %qotd-2001-03-06.txt %qotd-2001-03-07.txt %qotd-2001-03-08.txt
> ]
>
> in the last test it works, but then, the purpose of using 'find' is lost..
>
> A work-around would be to check every value in the block separately..
>
Not a workaround, its innded to work that way.
you can find the wildcard-position in a string.
not a string in a block
-Volker