I want to add 2 empty lines to a file before each line starting with #---
I used the Search & Replace :
Search: ^#---
Replace: 

#---
-----------------------------------------
Option   : "Regular expression", 
Direction: "Entire Scope",
Scope    : "Global"

_If i process, the replacement goes into an endless loop._

As i add new lines, instead searching the next expression after the replaced
text, it seems that the search stay in same line as the replaced text. 
This cause an infinite loop. 

_If you tick Prompt user you can see the issue. _

-- 
<https://forum.pspad.com/read.php?2,79398,79398>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem