in reply to Looking for regexp to convert hex numbers in text

s/(0x[0-9a-fA-F]+)/chr(oct($1))/ego;

After Compline,
Zaxo