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

[REBOL] using 'find to search

From: ryan:christiansen:intellisol at: 11-Apr-2001 16:40

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 not others. It will successfully find "as" and "rebol" but cannot find professional or "such." I'm confused. Ryan C. Christiansen Web Developer Intellisol International 4733 Amber Valley Parkway Fargo, ND 58104 701-235-3390 ext. 6671 FAX: 701-235-9940 Global Leader in People Performance Software _____________________________________ Confidentiality Notice This message may contain privileged and confidential information. If you think, for any reason, that this message may have been addressed to you in error, you must not disseminate, copy or take any action in reliance on it, and we would ask you to notify us immediately by return email to [ryan--christiansen--intellisol--com]