in reply to
Regex to remove data
Keeps the lines that are empty or that contain only whitespace characters:
perl -ne 'print if not /[A-Z]/ && /^[A-Z\s]+$/' file.txt
Comment on
Re: Regex to remove data
Download
Code
In Section
Seekers of Perl Wisdom