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

[REBOL] Re: using 'find to search

From: gjones05:mail:orion at: 11-Apr-2001 17:16

From: <[ryan--christiansen--intellisol--com]>
> I am using the following to search for keywords in a string. > > The word 'xml-message represents a string which includes XML tags and > content between the tags. > The word 'messages is a block of 'xml-message strings. > The word 'cgi-data is an object including values 'keyword and 'messageID > > foreach xml-message messages [ > if find xml-message cgi-data/keyword [ > message-with-keyword: load/markup xml-message > append messages-with-keyword message-with-keyword/<messageID> > messages-with-keyword > ] > ] > > You can see the search function in action here: > > > > The 'find seems to be able to find some of the words in the string, but
> others. It will successfully find "as" and "rebol" but cannot find > "professional" or "such." > > I'm confused. > > Ryan C. Christiansen > Web Developer
In reference to "search function", I assume that you are referring to the Search News! button and accompanying field. Here is what I get when I search the same terms. rebol returns: 20010410143649 20010411114200 as returns: 20010410143649 20010411114200 professional returns: 20010411114200 such returns: 20010411114200 Your search function appears to be returning the correct article numbers based on the articles that I can read in the bottom portion of the screen. Am I misunderstanding? --Scott Jones