Thread: loop issue
View Single Post
Old 27th July 2018, 01:55   #3
MyPC8MyBrain
Member
 
Join Date: Nov 2015
Posts: 96
Thank you Anders <3
indeed i am ignoring $3 as its the encore only,
i need to find and replace the line that comes right after $3,
as $0 string will show up many times; always below a distinct but similar entry to $3 format,
i first find my "encore" line with $3; from there i find again $0 and replace,

the problem is that it keeps looping finding $0 and replacing it multiple times instead of a single time edit followed by exiting,

i need to find string 1, immediately followed by the first instance found of string 2 following string 1 and replace it,

am i going at it the wrong way?

TIA
Chris
MyPC8MyBrain is offline   Reply With Quote