[EMAIL PROTECTED] wrote:
How would I remove any and "only" single characters from a string?

$_ = "This is a character d g string test";

I want this to read "This is character string test."

Off the top of my head...untested:

$string =~ s/ \w\b//g;

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to