Help for this page

Select Code to Download


  1. or download this
    $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
    
  2. or download this
    s/
        %                             ## find (and discard) the % char
    ...
        pack("C", hex($1))            ## convert hexcharacters to a number
    +, 
                                      ## then pack to a character
    /eg;  ## replace all in the target string