Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Regex to cange HTML %?? to char(0x??);

by TGI (Parson)
on Jun 19, 2001 at 23:56 UTC ( #89791=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # The above shrunk a bit.
    $str =~ s/%([0-9A-F][0-9A-F])/chr(hex($1))/ieg;
    
    # - or more cryptic
    $str =~ s/%([0-9A-F][0-9A-F])/sprintf("%1c",hex($1))/ieg;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2019-09-21 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (271 votes). Check out past polls.

    Notices?