I think there's a mistake in @JMichaelTX's macro above. His original Regular Expression search:

has four tagged sequences but he only uses three of them in the replacement string. I think his replacement string will end up deleting everything from the second instance of %Local__Line% to the end of the list.
The fix is simple, the replacement should be:
\1\2\3\4
which will insert:
\1: The beginning of the list, before the first instance of %Local__Line%
\2: The first instance of %Local__Line%
\3: Everything up to the second instance of %Local__Line%
\4: Everything after the second instance of %Local__Line%
I hope this helps. It's a great example of using Regular Expressions.