You are here: PSPad forum > English discussion forum > Right Order

Right Order

#1 Right Order

Posted by: garydavid711 | Date: 2013-04-12 15:39 | IP: IP Logged

i need to get all lines sorted in right order-i have this in one long line
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
1.xxxxx
3.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
i have 16902 lines which 692 are 1.3.2.
the rest 1.2.--i need to get in right order to look like this-i used Use:

Find: (\d\D+)
Replace: $1\n
[X]RegEx
(o)Backward----"but did not sort like this"

1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
3.xxxxx
1.xxxxx
2.xxxxx

Any ideas? smiling smiley

Options: Reply | Quote | Up ^


#2 Re: Right Order

Posted by: pspad | Date: 2013-04-12 17:51 | IP: IP Logged

I am afraid I don't understand.
If you have line:
1.xxxxx 2.xxxxx 1.xxxxx 2.xxxxx 1.xxxxx 2.xxxxx 3.xxxxx 1.xxxxx 2.xxxxx
and you want to split it into separates line:
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
3.xxxxx
1.xxxxx
2.xxxxx

The regular expression you mentioned works (tested just now). If you use backward replace, you must start on the end of file.
But I don't understand what should be result of sorting.

Options: Reply | Quote | Up ^


#3 Re: Right Order

Posted by: Stefan | Date: 2013-04-17 18:00 | IP: IP Logged

garydavid711:
i need to get all lines sorted in right order-i have this in one long line

Please re use the existent thread
forum.pspad.com

Please describe your needs better
and best provide some (shorten) real examples
how they looks now and how they should look after.

Before:

After:

Looked.

Options: Reply | Quote | Up ^


This Thread has been closed





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR