I have a list of some data which is in this format for example
word1 word2 word3
word4 word5
word6 word7 word8 word9
but I want to split it all up so that each word is in new line so it would become like:
word1
word2
word3
word4
word5
word6
word7
word8
word9
the blank space between the words is perfect seperator which could be used in search&replace but Not sure of what would the code be in notepad++ regex search?
Thanks
Click Search and then Replace. In the Replace window, in the Find what section, type ^\n (caret, backslash 'n') and leave the Replace with section blank, unless you want to replace a blank line with other text.
Using Regex to find and replace text in Notepad++ In all examples, use select Find and Replace (Ctrl + H) to replace all the matches with the desired string or (no string). And also ensure the 'Regular expression' radio button is set.
Entering \s+ on the Find what field and \n (Change to \n\n for two new lines) on the Replace With field followed by Replace All transforms:
word1 word2 word3
word4 word5
word6 word7 word8 word9
onto:
word1
word2
word3
word4
word5
word6
word7
word8
word9
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With