find help
[1/4] from: rotenca:telvia:it at: 11-Dec-2002 16:26
Can someone explain this?
>> find/match/last/tail "ba" "b"
== none
>> find/match/last "ba" "b"
== "a"
---
Ciao
Romano
[2/4] from: g::santilli::tiscalinet::it at: 11-Dec-2002 16:53
Hi Romano,
On Wednesday, December 11, 2002, 4:26:52 PM, you wrote:
>>> find/match/last/tail "ba" "b"
RPT> == none
Hmm, it looks like FIND is using HEAD? to figure out if the string
has been found or not. Seems a bug to me.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[3/4] from: greggirwin:mindspring at: 11-Dec-2002 10:40
Hi Romano,
RPT> Can someone explain this?
>>> find/match/last/tail "ba" "b"
RPT> == none
>>> find/match/last "ba" "b"
RPT> == "a"
Hmmm. I haven't used /match myself, so I'd have to look at things a
little more to see how it's supposed to work. Anyone else?
-- Gregg
[4/4] from: chalz:earthlink at: 11-Dec-2002 13:57
Check this out.
>> find/match/last/tail "ba" "b"
== none
>> find/match/last "ba" "b"
== "a"
>> find/match/last/tail "cba" "b"
== none
>> find/match/last/tail "cba" "ba"
== "ba"
>> find/match/last/tail "cba" "b"
== none
>> find/match/last/tail "cba" "c"
== none
>> find/match/last/tail "cba" "cb"
== none
>> find/match/last/tail "cba" "a"
== "a"
>>
Can you dig it? ;)