I
Iñaki Baz Castillo
Hi, I receive a String allowing hexadecimal escaping by using %XX syntax:
%61lice =3D> alice ( %61 =3D=3D a )
I would like to un-escape the string. I've got it using "eval" but I'd pref=
er=20
avoiding using "eval":
string =3D "%61lice"
string =3D eval %{ "#{ string.gsub(/%/,'\x') }" }
=3D> "alice"
How could I avoid the usage of "eval" to un-escape the string?
Thanks a lot.
=20
=2D-=20
I=C3=B1aki Baz Castillo
%61lice =3D> alice ( %61 =3D=3D a )
I would like to un-escape the string. I've got it using "eval" but I'd pref=
er=20
avoiding using "eval":
string =3D "%61lice"
string =3D eval %{ "#{ string.gsub(/%/,'\x') }" }
=3D> "alice"
How could I avoid the usage of "eval" to un-escape the string?
Thanks a lot.
=20
=2D-=20
I=C3=B1aki Baz Castillo