Regex to remove new lines up to a specific character

后端 未结 5 1183
情歌与酒
情歌与酒 2021-01-27 14:41

I have a series of strings in a file of the format:

>HEADER_Text1
Information here, yada yada yada
Some more information here, yada yada yada
Even some more i         


        
5条回答
  •  伪装坚强ぢ
    2021-01-27 14:58

    Given that the > is always expected to be the first character on the new line

    "\n([^>])" with " \1"

提交回复
热议问题