You are here: PSPad forum > English discussion forum > Re: Instead of ", " -> a new line

Re: Instead of ", " -> a new line

#1 Instead of ", " -> a new line

Posted by: hlk123 | Date: 2016-12-18 10:05 | IP: IP Logged

Hello

I've a text-file, whose pages contain f.e.:

.
.
POLES AND STABILITY 23
Example 2.8 Poles and system stability 23, Script 2.8 24, P2.15-P2.18 25
EFFECTS OF ZEROS DN SYSTEM RESPONSE 25
Example 2.9 Blocking zeros 26, Script 2.9 27, P2.19-P2.20 28
Example 2.10 Right half-plane zero 28, Script 2.10 28
EXPLORATION E2.1 29
.
.

I want to edit it to be:
.
.
POLES AND STABILITY 23
Example 2.8 Poles and system stability 23
Script 2.8 24
P2.15-P2.18 25
EFFECTS OF ZEROS DN SYSTEM RESPONSE 25
Example 2.9 Blocking zeros 26
Script 2.9 27
P2.19-P2.20 28
Example 2.10 Right half-plane zero 28
Script 2.10 28
EXPLORATION E2.1 29
.
.

Instead of ", " I want it to be "a new line" or "CR+LF" or "ENTER"

I've tried with Macros .. but it failed.
Can you help me?
Thank you ... & Merry Xmas ...

Options: Reply | Quote | Up ^


#2 Re: Instead of ", " -> a new line

Posted by: AndreasW | Date: 2016-12-18 10:12 | IP: IP Logged

Replace "," with "\n" and activate the option "regular expressions"

Options: Reply | Quote | Up ^


#3 Re: Instead of ", " -> a new line

Posted by: therium | Date: 2017-01-26 12:05 | IP: IP Logged

In the search and replace dialog box, check the Regular Expressions box, you want to replace ',', with ',\n'. Do not use the single quotes.

In Regex, \n means CRLF.

Options: Reply | Quote | Up ^






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