Page 1 of 1

Transpose?

Posted: Mon Jun 09, 2014 2:38 am
by gcotterl
My data looks like this:

name
address
city
state
zip

name
address
city
state
zip

name
address
city
state
zip

name
address
city
state
zip

============================================

How can I get the data in each block onto the same line so the result looks like this:

name address city state zip
name address city state zip
name address city state zip
name address city state zip

Posted: Mon Jun 09, 2014 8:10 am
by ben_josephs
Search | Replace... (<F8>):
Find what: (.*)\r(.*)\r(.*)\r(.*)\r(.*)\r\r
Replace with: $1 $2 $3 $4 $5\r

[X] Regular expression

Replace All

Posted: Mon Jun 09, 2014 1:52 pm
by gcotterl
Thank you!!!

Posted: Tue Jun 10, 2014 10:39 am
by jeffy
If it's that strictly formatted, a macro would work as well. Just record and run with word-wrap off.