Hello again,
I have a long word list, the words are seperated by returns. I want now a macro that changes every second return (\n) into a tab (\t) and leaves the others untouched. Seems to be easy, but I have no idea.
Thanks für help!
Ulrich
Every second return to tab
Re: Every second return to tab
This can easily be done with Find and Replace. In Powerfind it looks like this:
Note: I checked "Replace Formatting" to make sure any special formatting is kept. You may not really need this for a word list.
Basically you search for two paragraphs with their returns and you replace one of the two. If you do a Replace All using this, the find expression will match all paragraphs pairwise giving you the alternation you need. You can of course macroize the expression, if you want to reuse it often.
Macroized (in PowerFind Pro) it will look like this:
Basically you search for two paragraphs with their returns and you replace one of the two. If you do a Replace All using this, the find expression will match all paragraphs pairwise giving you the alternation you need. You can of course macroize the expression, if you want to reuse it often.
Macroized (in PowerFind Pro) it will look like this:
Code: Select all
Find and Replace @Text<^(.+)\n(.+)\n>, @Text<\1\t\2\n>, 'EaU'philip
Re: Every second return to tab
Oh ... so easy, it's a litle bit embarrassing for me.
Thanks again very much, Philip!
Ulrich
Thanks again very much, Philip!
Ulrich