I have a text log file in the following format.
****************************************************************************************
line1
line2
line3
****************************************************************************************
line4
line5
line6
****************************************************************************************
Is there a way in Notepad++ to combine lines between the "*" separators so the data looks like below
****************************************************************************************
line1 line2 line3
****************************************************************************************
line4 line5 line6
****************************************************************************************
Thanks!
(?<!\*)\R(?!\*)
# a spaceExplanation:
(?<!\*) # negative lookbehind, make sure we haven't a * before
\R # any kind of linebreak
(?!\*) # negative lookahead, make sure we haven't * after
Screenshot (before):
Screenshot (after):