filter command and "not" wildcards

Sivakatirswami katir at
Thu Dec 6 16:12:00 EST 2001

on 12/6/01 8:13 AM, use-revolution-request at at
use-revolution-request at wrote:

> I've also requested this.  Suggested syntax:
>   filter <container> excluding <expression>
> It should be one of those things where a relatively small programming effort
> produces a considerable expansion in facility.

This is very fast:

 put url "file:harddrive/somefile.txt" into dataToFilter
 repeat for each line x in dataTofilter
    if x contains (expression) then
       next repeat
      put x & cr after dataOutPut
    end if
  end repeat
put dataOutPut into url "file/processed/theFilteredData.txt"

I have processed lists up to 120,000 lines with the above in under 2 secs

Hinduism Today

Editor's Assistant/Production Manager
katir at,,,

Read The Master Course Lesson of the Day at

More information about the Use-livecode mailing list