Hi, @garbage-gold, @astrosofista, @alan-kilborn and All,
Again, I would use a combination of regex S/R and the column Editor feature !
So, from the input text, below :
358 293 866 511 58 767 562 644 163 569 414 305 973 16 692 128 353 1000 870 58 535Using the following regex S/R :
SEARCH (?-s)^(.+)\R(.+)\R(.+)
REPLACE @@@@\1\t\2\t\3
we get the text, with words separated by a TAB char :
@@@@358 293 866 @@@@511 58 767 @@@@562 644 163 @@@@569 414 305 @@@@973 16 692 @@@@128 353 1000 @@@@870 58 535Now, place the caret after the two first @ characters of the first line
And using the column editor ( Alt + C ) and inserting a list of numbers, beginning with 1, we obtain :
@@1@@358 293 866 @@2@@511 58 767 @@3@@562 644 163 @@4@@569 414 305 @@5@@973 16 692 @@6@@128 353 1000 @@7@@870 58 535Finally, using the simple S/R :
SEARCH \t
REPLACE \r\n ( or \n only for Unix files )
You’ll have your expected text :
@@1@@358 293 866 @@2@@511 58 767 @@3@@562 644 163 @@4@@569 414 305 @@5@@973 16 692 @@6@@128 353 1000 @@7@@870 58 535Best Regards,
guy038