You are here: PSPad forum > English discussion forum > SORT LINES
Posted by: garydavid711 | Date: 2013-04-03 16:29 | IP: IP Logged
I have a text sorted like this:
1.xxxxxxx
3.xxxxxxx
2.xxxxxxx
if i join lines:
1.xxxxxxx3.xxxxxxx2.xxxxxxx
is there a command that that would rearrange or a sort command that would change line text to look like this:
1.xxxxxxx
2.xxxxxxx
3.xxxxxxx
Posted by: pspad | Date: 2013-04-03 17:07 | IP: IP Logged
Menu Edit / Sort lines will sort lines for you
If you want to separate long line into your short lines, use regular expressions
Posted by: garydavid711 | Date: 2013-04-03 18:54 | IP: IP Logged
What is command for long line i used regex
(\d+)
\n$1
did not change?
Posted by: Stefan | Date: 2013-04-03 20:28 | IP: IP Logged
FROM:
1.xxxxxxx3.xxxxxxx2.xxxxxxx
TO:
1.xxxxxxx
2.xxxxxxx
3.xxxxxxx
Use:
Find: (\d\D+)
Replace: $1\n
[X]RegEx
(o)Backward
For explanation see
en.wikipedia.org
www.regular-expressions.info
.
.
Double posting at forum.pspad.com
.
Edited 1 time(s). Last edit at 2013-04-18 17:37 by Stefan.
Posted by: garydavid711 | Date: 2013-04-03 23:43 | IP: IP Logged
Thanks for the try but that did not work stay same--but i was not totally accurate but i do not see difference--it is like this:
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
1.xxxxx
3.xxxxx
2.xxxxx
1.xxxxx
2.xxxxx
16902 lines which 692 are 1.3.2.
the rest 1.2.
Posted by: garydavid711 | Date: 2013-04-18 02:53 | IP: IP Logged
you are right i will recheck thanks you have been very helpful and are great-thanks again-
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