http://qs321.pair.com?node_id=775577


in reply to Re: quotes substitution
in thread quotes substitution

hey there......
that regex does not work properly (dont be offended)...... i tried it but the output is

"'; 3'"

so i think..... there should be one more useless line like

$line=~s/;//g; #no need of /g as such

Replies are listed 'Best First'.
Re^3: quotes substitution
by citromatik (Curate) on Jun 29, 2009 at 08:00 UTC
    $ cat 775558.pl use strict; use warnings; my $line="” 3”"; $line =~ s/(?:&|&amp\;)rdquo;/'/g; print "$line\n"; $ perl 775558.pl ' 3'

    citromatik

      thnx........ i got my mistake...