View Full Version : Hex to ASCII
niv
January 17th, 2002, 20:33
Basically, I want the s/// statement that will change:
%63%72%61%70 to crap.
niv
January 17th, 2002, 20:40
Dusty...I could use your help sometime around now. :p
Dusty
January 17th, 2002, 20:58
Dusty to the rescue!
$var=~s/%(..)/pack("c",hex($1))/ge;
niv
January 17th, 2002, 21:00
Thank you, poster currently known as Dusty!
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.