On May 4, 2004, at 3:05 PM, [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."
How about:
s/\b[a-zA-Z]\b//g;
Hope that helps.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>