by pietzcker » Thu Feb 12, 2009 2:25 am
I'm assuming you have UE V14. In theory, this Perl regex should work. In practice, this might depend on the size of the file and the length of the lines. Try the following on a backup copy first:
Make sure the cursor is at the top of the file.
Open the Replace dialog, select Perl regular expressions and enter
((?:.*\r\n){1000})
in the search box and
\1GO\r\n
in the replace box. Then click on "Replace all".
If that doesn't work, you could also use a macro that simply simulates a "Down Arrow" keystroke 1000 times and then enters "GO<enter>", looping until the end of file. But that will be a lot slower, especially if you have to add checks that you haven't yet reached EOF. So try the above regex first.