in reply to Removing blank/empty lines
Use a regex like /$\s*^/ to anchor the pattern at both ends and search for zero-or-more occurrences of a space character between.
In Section
Seekers of Perl Wisdom
in reply to Removing blank/empty lines