Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Rebol "Find/whole" suggestion

From: al::bri::xtra::co::nz at: 9-Mar-2002 9:44

What's wrong with just using:
>> find "This is a bookmark in a book of writing" " book "
== " book of writing" In other words, just put a space before and after the search item? Or if you're using more complex text, something like:
>> parse/all Text [any [[[#" " | #"^/"] mark: "book" end: [#" " | #"^/"]]
(print copy/part Mark End) | skip] end] book == true Andrew Martin ICQ: 26227169 http://valley.150m.com/