in reply to
perl one liner
The majority of the other answers illustrate the answer (varying only in the RE delimiters) to be found in recipe 6.1 of the
Perl Cookbook
.
I'd strongly recommend you purchase a copy...
A user level that continues to overstate my experience :-))
Comment on
Re: perl one liner
In Section
Seekers of Perl Wisdom