Regular Expression question

Jim Ault JimAultWins at yahoo.com
Wed Aug 9 10:51:36 EDT 2006


On 8/9/06 6:36 AM, "Ton Kuypers" <tkuypers at dmp-int.com> wrote:

This will do the same thing.
The idea is to use Rev's array features such that keys are automatically
unique and can be as long as you wish.
This means that you could remove duplicate lines of any length.

get listOfAnything
filter it without empty --just in case
repeat for each line LNN in it
   put 1 into tempArr[LNN]
end repeat
get the keys of tempArr
sort it numeric --in your case for numbers
answer it


Jim Ault
Las Vegas

On 8/9/06 6:36 AM, "Ton Kuypers" <tkuypers at dmp-int.com> wrote:

> Hi,
> 
> I have a list like:
> 1
> 1
> 1
> 2
> 2
> 3
> 4
> 4
> 4
> 
> And I need all double lines removed from this list so it becomes:
> 1
> 2
> 3
> 4





More information about the use-livecode mailing list