<?xml version="1.0" encoding="windows-1252"?>
<node id="434486" title="Re^4: Can the &quot;#&quot; character be passed via $ENV{QUERY_STRING} ?" created="2005-02-25 09:42:51" updated="2005-06-04 06:31:43">
<type id="11">
note</type>
<author id="9685">
mdillon</author>
<data>
<field name="doctext">
I think that should be:

&lt;code&gt;
s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg
&lt;/code&gt;

In fact, that's pretty much exactly what's in [cpan://URI::Escape], except that the module also handles scalar v. list context and multiple arguments. Using uri_unescape still seems preferable to me, since the resource overhead of using the module is basically nil and the mnemonic benefit of seeing uri_unescape instead of a regex is considerable.</field>
<field name="root_node">
434301</field>
<field name="parent_node">
434393</field>
</data>
</node>
