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

[REBOL] Re: Faster/better way to achieve this?

From: alain::goye::free::fr at: 22-Apr-2009 11:53

Hi Kai I need to eliminate lines from a file that contain one or more words from anegative list. Below is some simplified code showing how I am currently doing this. Isthere a faster/better way? TIA Kai str: "Romeo loves Juliet very much" neg: [ "cheese" "bread" "wine" "very" ] strbl: parse str none if (length? strbl) + (length? neg) > length? union strbl neg [ print "kickout" ]