in reply to File Find/Replace with the replacement coming from part of earlier matched string
I would read line by line and try to match the headlines with a regex in an if statement.
if match headline then capture headline in variable else if empty line then print empty line else print captured headline + current line
hmm ... almost Python! :)
Cheers Rolf
|
|---|