Aye, that works, but then requires parsing n, perhaps for the second time,
which can be slow, especially on really really big docs. I prefer inserting
and appending a space to the word...
a: "book"
insert a " " append a " "
n: "This is a bookmark"
find n a
== none

Just thought this would make a nice addition to "Find"... "Find/whole".
Text editors have a "Find whole words" ability... so should Rebol.

TBrownell



----- Original Message -----
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 9:15 AM
Subject: [REBOL] Re: Rebol "Find/whole" suggestion


> hi Terry,
>
> << Here's one feature I could use..
>
> Find/whole
>
> n: "This is a bookmark"
>
> find/whole n "book"
> ==false >>
>
> How about something like:
>
> >> find parse n none "book"
> == none
>
> --Gregg
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to