You are here: PSPad forum > English discussion forum > Join Lines problem
Posted by: maki | Date: 2017-11-09 14:05 | IP: IP Logged
How to join a line so that it does not add unnecessary empty spaces !!!
ex:
1
2
3
Wrong:
1 2 3
I want:
123
I want to create a very long regex with file names, and the blank space in this case is invalid
Edited 1 time(s). Last edit at 2017-11-09 14:08 by maki.
Posted by: pspad | Date: 2017-11-09 17:55 | IP: IP Logged
Function result isn't wrong. It's as users wished it.
Do you want different functionality? You can simple do it with script. As inspiration you can take my List conversion script.
P.S. I was false. See the Andreas answer bellow
Edited 1 time(s). Last edit at 2017-11-09 21:51 by pspad.
Posted by: Andreas | Date: 2017-11-09 18:32 | IP: IP Logged
Jan, I think you have added the option Settings-Tools-"Merge lines" with space. Maybe he jutst needs to uncheck this setting.
Posted by: pspad | Date: 2017-11-09 21:51 | IP: IP Logged
Hello Andreas, you are right. There is option Join line - space as separator.
So Maki can change this option and can make Join line works as he need.
There is too many options
Posted by: MichalKarlik | Date: 2017-11-10 06:04 | IP: IP Logged
Dear user,
you do job wrong way. Simply join lines and then remove spaces inside line(s) by embedded function.
It is all and simple.
Best regards,
Michal Karlik
Edited 2 time(s). Last edit at 2017-11-10 06:07 by MichalKarlik.
Posted by: maki | Date: 2017-11-10 11:37 | IP: IP Logged
To do it all, I have to do a lot of activities that all the names have to add a separator. "|" and ^ $ and delete the space if I want with a few thousand names to create a very long regex to later find files in all locations.
Another option would be MERGE and create from all lines of regex.
I'm not a script writer so I have no idea how to do it.
Posted by: pspad | Date: 2017-11-10 13:29 | IP: IP Logged
maki:To do it all, I have to do a lot of activities that all the names have to add a separator. "|" and ^ $ and delete the space if I want with a few thousand names to create a very long regex to later find files in all locations.Another option would be MERGE and create from all lines of regex.
I'm not a script writer so I have no idea how to do it.
Open program settings / Tools
Uncheck []Join line - space as separator
Use join line without included spaces
Posted by: MichalKarlik | Date: 2017-11-10 18:31 | IP: IP Logged
If your separator is unique and same, the second step should be simple - Find "separator" and Replace for "nothing" (simple embedded function).
Best regards,
Michal Karlik
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