in reply to Re: Another Regular Expression
in thread Another Regular Expression
use HTML::Entities; my $str = q("I have a 15" latter and a 6" foot arm."); substr($str, 1, length($str)-2) = encode_entities(substr($str, 1, leng +th($str)-2)); print $str; #"I have a 15" latter and a 6" foot arm."
|
|---|