Sometimes I need to add (a lot of) line breaks in some chunk of text.
After some searching online I found this method that uses MS Office Word and the replace functionality.
How it works:
- Paste your chunk of text in a (new) MS Word Document
- Press CTRL + H for the replace form.
- Enter the character(s) that you want to replace with a line break.
- As the ‘replace with’ text you type |^ (and maybe some more characters that you need to keep)
- Hit ‘replace all’ and you will have your text with line breaks.
Simple as that.
I know there are probably other ways to achieve this, but for me this works fine.
This tip was useful to me but rather than using |^ for the line break, I ended up using ^|. But, of course, things might have changes in the 4.5 years since this article was written.
I’m using: Microsoft Word for Microsoft 365 MSO (Version 2201 Build 16.0.14827.20216) 64-bit
Yeah, things could have changed!
Hi, when I tried to replace it both ^| and |^, it didn’t recognize it as a line break, just a standard word replacement. Do i need an extra steps for the ^| to be formatted into a line break?
Not that I’m aware off.