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
In reply to Re: File Find/Replace with the replacement coming from part of earlier matched string
by LanX
in thread File Find/Replace with the replacement coming from part of earlier matched string
by navinc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |