You are here: PSPad forum > Bug report / Hlášení chyb > Mass replacement don't work
Posted by: poncho | Date: 04/01/2008 10:24 | IP: IP Logged
I tried to replace "\r\n" in a large string with a real new line. I used regex, search="\\r\\n", replace="\n".
PSPad replaces only the first match.
I used a constans field from a Typo3 template (over 4800 chars in a single line)
PSPad 4.5.4 (2308)
Posted by: vbr | Date: 04/01/2008 10:42 | IP: IP Logged
poncho:I tried to replace "\r\n" in a large string with a real new line. I used regex, search="\\r\\n", replace="\n".
PSPad replaces only the first match.
...
Hi, due to the current limitation of the regex engine the backward search should be used for replacements with newlines.
See e.g. forum.pspad.com
Edited 1 time(s). Last edit at 04/04/2008 20:48 by Stefan.
Editor PSPad - freeware editor, © 2001 - 2013 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák