title: PHP- preg_replace on hex char
body: <p>i have a string, like this:</p>
  
  <p><code>'&lt;indirizzo&gt;Via Universit\E0 4&lt;/indirizzo&gt;'</code></p>
  
  <p>Whit HEX char... i need string become:</p>
  
  <p><code>'&lt;indirizzo&gt;Via Università 4&lt;/indirizzo&gt;'</code></p>
  
  <p>So, i use: <br>
  <code>$text= preg_replace('/(\\\\)([a-f0-9]{2})/imu', chr(hexdec("$2")),  $text);</code></p>
  
  <p>But dont work because hexdec dont use value of $2 (that is 'E0'), but use only value '2'.
  So hexdex("2") is "2" and chr("2") isnt "à"</p>
  
  <p>What can i do?</p>