How to get the difference between two lists?

Dar Scott dsc at swcp.com
Tue Apr 5 14:03:42 EDT 2005


On Apr 5, 2005, at 11:12 AM, Wouter wrote:

> Could you compile a oneliner regex that worked in rev's filter 
> function?

Not one that worked.  Only the replaceText() worked and then for 
smaller lists.

This is what I tried:

// replaceText version
function shortListDar3 pL, pEx
   return replaceText(pL,"(?m)^" & replaceText(pEx,"\n","\n|^") & 
"\n",empty)
end shortListDar3

// filter version
function shortListDar5 pL, pEx
   filter pL without replaceText(pEx,"\n","|")
   return pL
end shortListDar5

Dar



More information about the use-livecode mailing list