Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: replace string

by ig (Vicar)
on May 18, 2009 at 10:43 UTC ( [id://764628] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $input =~ s/”/”/gi;
    $input =~ s/’/’/gi;
    print "processed input: $input\n";
    
  2. or download this
    input: <b></b>Officially called <>“events,&rdq
    +uo;</a> as "never events"
    processed input: <b></b>Officially called <>“e
    +vents,”</a> as "never events"