PowerShell – Howto remove white lines?

This is something I get asked quite a lot.
Some peopleĀ use the -Replace operator, others the .Replace() method.
Did you know you could use a regex for this?
Easy and very, very fast šŸ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *