You are here: PSPad forum > English discussion forum > Add line break to string

Add line break to string

#1 Add line break to string

Posted by: cornelisdigitaal | Date: 2018-03-14 16:47 | IP: IP Logged

I have searched for hours, but cannot seem to find the right answer.
I tried to search and replace (with regular expressions turned on):




to get it on the next. PSPad is busy for a while and then comes up with "Error in search expression".

How do I get "string" to the next line?


Options: Reply | Quote | Up ^

#2 Re: Add line break to string

Posted by: Andreas | Date: 2018-03-14 17:18 | IP: IP Logged

Position your cursor in first line first character (Strg+home). In Find&Replace activate regex. Activate "backwards". Search for "string" and replace with "\nstring".

Or use the addon "phreplace". With this you don't need "\n". Simply use an "enter".

Options: Reply | Quote | Up ^

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