Monday, March 23, 2020

Removing empty lines in text using Visual Studio

Click ctrl-H to bring up the search window
Click: Use Regular Expressions
For the search term, put in: ^(?([^\r\n])\s)*\r?$\r?\n
For the replace term, delete everything

Thanks to https://stackoverflow.com/questions/12453160/remove-empty-lines-in-text-using-visual-studio

No comments:

Post a Comment

Creating a LAMP stack on AWS Free Tier

  https://shawn-shi.medium.com/how-to-host-a-lamp-web-application-server-on-aws-ec2-for-free-8f6fc61463ed#:~:text=Its%20free%20tier%20allows...