How to break lines at a specific character in Notepad++?
- Click Ctrl + h or Search -> Replace on the top menu
- Under the Search Mode group, select Regular expression
- In the Find what text field, type
],\s*
- In the Replace with text field, type
],\n
- Click Replace All
Let's assume
],
is the character where we wanted to break at
- Open
notePad++
- Open
Find window
Ctrl+F - Switch to
Replace
Tab - Choose
Search Mode
toExtended
- Type
],
inFind What
field - Type
\n
inReplace with
field - Hit
Replace All
- Boom