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

Posted by: **hlk123** | Date: 12/18/2016 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 ...

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

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

Posted by: **therium** | Date: 01/26/2017 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.

Editor PSPad - freeware editor, © 2001 - 2018 Jan Fiala

Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák