In a plain text file, how can I replace or insert a string at the starting of a paragraph, knowing a substring in the previous paragraph?!
I try to explain with an example.
I have hundreds of paragraphs that start with the substring "¶Art. " and continues with different text. I need to insert a new substring "¶_A" at the head of all paragraphs that follows the above, but only at the first (there are undefined number of paragraphs after each "¶Art. " starting paragraph.
I say insert or replace, because I guess I can replace newline char with newline + "¶_A".