Hi,
When using regular expression in the search/replace dialogue with the new line
character (\n) only the first occurrence is replace, for example :
replacing ; with \n the follonwing line :
aa;aa;aa;aa;aa;
return =>
aa;
aa;aa;aa;aa;
instead of =>
aa;
aa;
aa;
aa;
aa;



The message popup said 5 replacements were made (so said the "count" button)

It seems that replacement is made *on the fly*, so once the first new line
is placed the "working line" is now finished for the replacing process. The
correct way should be to use a copy of the original line to work on.

It may be a correct implementation of the regexp but I didn't see this behaviour
in other softwares (vi,textpad, dreamweaver,...)

It doesn't seems to be a problem with the "global option" because replacing ;
with any other char. works perfectly.

[i]My config : 
Windows XP SP3, processor: Intel(R) Core(TM)2 Duo CPU     E4600  @ 2.40GHz 2400
MHZ, 2048MB RAM[/i]

-- 
<http://forum.pspad.com/read.php?4,48545,48545>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem