--eHrxbAcqt/LxKPZN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Robert Linder (robert_linder_2000 / yahoo.com) wrote:

> Me , Dummy.
>=20
> I was thinking of Hex ranges, not base 10

The other option is to use cgi-lib to unescape the string and use a
regex to replace any character you don't want to see:

require 'cgi-lib'

CGI::unescape(str).gsub(/[^a-zA-Z0-9_+\-]/n) { '_' }

--=20
Eric Hodel - drbrain / segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04


--eHrxbAcqt/LxKPZN
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9k/skMypVHHlsnwQRAmhjAJ46InK1YH8duZhOi41s/UdAEPBzRgCfZ0NU
LOeM5zeVvkdAPVl+CMyYjGc=
=QQdT
-----END PGP SIGNATURE-----

--eHrxbAcqt/LxKPZN--
Robert Linder (robert_linder_2000 / yahoo.com) wrote:

> Me , Dummy.
>=20
> I was thinking of Hex ranges, not base 10

The other option is to use cgi-lib to unescape the string and use a
regex to replace any character you don't want to see:

require 'cgi-lib'

CGI::unescape(str).gsub(/[^a-zA-Z0-9_+\-]/n) { '_' }

--=20
Eric Hodel - drbrain / segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9k/skMypVHHlsnwQRAmhjAJ46InK1YH8duZhOi41s/UdAEPBzRgCfZ0NU
LOeM5zeVvkdAPVl+CMyYjGc=
=QQdT
-----END PGP SIGNATURE-----