Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: quotes substitution

by hnd (Scribe)
on Jun 29, 2009 at 07:52 UTC ( #775577=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: quotes substitution
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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://775577]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-09-23 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls