How to break lines at a specific character in Notepad++?

前端 未结 6 1600
[愿得一人]
[愿得一人] 2021-01-29 20:44

I have a text file containing text like:

[\'22APR2012 23:10\', \'23APR2012 07:10\', 1, 3, 0], [\'22APR2012 23:10\', \'23APR2012 07:20\', 1, 3, 0], [\'22APR2012 2         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 21:35

    Let's assume ], is the character where we wanted to break at

    1. Open notePad++
    2. Open Find window Ctrl+F
    3. Switch to Replace Tab
    4. Choose Search Mode to Extended
    5. Type ], in Find What field
    6. Type \nin Replace with field
    7. Hit Replace All
    8. Boom

提交回复
热议问题