[REBOL] Re: Rebol "Find/whole" suggestion
From: hallvard:ystad:helpinhand at: 8-Mar-2002 21:41
Dixit Terry Brownell (19.15 08.03.2002):
>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...
>insert a " " append a " "
>n: "This is a bookmark"
>find n a
nn: "But this is a book; this is yet another book, and finally, this is a book"
insert a " " append a " "
find nn a
So you probably shouldn't add spaces, but parse with a charset! that's the complement
of all letters that may constitute a word. And finally check if the string starts or
ends with the word you're looking for.