If you have a requirement wherein you want to add blank lines after each line in a text file, you can achieve it using Text Editors which supports Find and Replace using Regular Expressions.
Using Notepad++
- Open the file in Notepad++
- Press Ctrl + H to open Find and Replace Option.
- Choose Select Mode : Extended.
- In the Find text filed add : \n
- In Replace with : text field add : \n\n, click Replace All.
You would see that there is a blank line added after each line.
Other way :
- Open Find and Replace,
- Choose Select Mode : Regular Expression .
- Find : $
- Replace with : \n
✌️ $ implies the end of the line.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!