in reply to Trimming trailing double quotes

if you want to trim trailing double quotes

u can change your regex as follows

$line=' "the text" i found in "the" "line'; $line =~ s/(\w)"/$1/g; print $line;

output:

"the tex i found in "the "line

regards,

Senthil Kumar.k

Replies are listed 'Best First'.
Re^2: Trimming trailing double quotes
by perlsen (Chaplain) on Jan 06, 2005 at 07:35 UTC

    sorry the output i was mentioned in previous reply should be

    "the text i found in "the "line

    sorry for the previous suggetion of output

    but regex is correct

    thanks

    Senthil Kumar.k