On Dec 23, 2013, at 6:19 PM, Paul Hibbert <paulhibbert at mac.com> wrote: > …or am I missing something? Yes, because of the way lineOffset works. For example, if pListA is "12" and pListB is "2", then lineOffset(2,12) is 1, and an unintended delete occurs. Avoid that by first setting the wholeMatches to true. Then lineOffset(2,12) is 0. -- Dick