: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 20, 2000 11:45 PM
Subject: [REBOL] Find/any doesn't seem to find strings in blocks.. Re:(3)
> Hi Elan,
>
> Good question. I assumed one sort of behaviour but it is not necessarily
> obvious is it?
>
&
ely, as it does
now, but with the /any refinement enabled to influence the matching.
Any comments?
Brett.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 20, 2000 2:44 PM
Subject: [REBOL] Find/any doesn't seem to find string
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
Shou
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: [EMAIL PROTECTED]