[REBOL] Find/any doesn't seem to find strings in blocks.. Re:(2)
From: rebol:techscribe at: 19-Aug-2000 21:44
Hi etcha,
>> help find
[...]
/any -- Enables the * and ? wildcards.
[...]
Case 1:
>> string: "xdefgjkljyjkljweruiouz"
>> find/any string "y*z"
== "yjkljweruiouz"
Case 2:
>> block-with-string: reduce [string]
== ["xdefgjkljyjkljweruiouz"]
>> find/any block-with-string "y*z"
== none
Should find's behavior be the same in both cases?
At 12:00 PM 8/20/00 +1000, you wrote:
>whats wrong with:
>
>>> blah: "my-string"
>== "my-string"
>>> blah: parse blah "-"
>== ["my" "string"]
>>> if find blah "my" [print ["yes"]]
>yes
>>>
>
>its not what you want, but you cant search the string for something thats
>not there,
>eg "my*" :)
>
>etcha
>
>-----Original Message-----
>From: [bhandley--zip--com--au] <[bhandley--zip--com--au]>
>To: [list--rebol--com] <[list--rebol--com]>
>Date: Sunday, August 20, 2000 11:42 AM
>Subject: [REBOL] Find/any doesn't seem to find strings in blocks..
>
>>I would have expected this to work. Am I missing something?
>>
>> >> find/any ["my-string"] "my*"
>> == none
>>
>>Brett.
>>
>>--
>>>> my-rebol-stuff
>>== http://www.zipworld.com.au/~bhandley/rebol
>>
>
;- Elan [ : - ) ]
author of REBOL: THE OFFICIAL GUIDE
REBOL Press: The Official Source for REBOL Books
http://www.REBOLpress.com
visit me at http://www.TechScribe.com