Hi Andrew Kenton Mitchell
Try this
$string = '"I have a 15" latter and a 6" foot arm."'; $string=~s#(^")(.+?)("$)#$1.Quot($2).$3#eg;
or
$string=~s#(^")([^\n]+)("$)#$1.Quot($2).$3#eg; sub Quot { my ($line)=@_; $line=~s#"#"#g; return $line; }
Thanks,
Gopal.R
In reply to Re: Another Regular Expression
by gopalr
in thread Another Regular Expression
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |