[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."


s/(?:\s+[b-hj-z]\b|\b[b-hj-z]\s+)//ig;


John
-- 
use Perl;
program
fulfillment

-- 
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