Remove Special Character ^@ from Text.

Eugene Smiley eugene at esmiley.net
Mon Oct 13 11:28:27 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bernardino lopez wrote:
> I'm trying to use some files but seems like there is
> some special spaces or characters, I wonder if
> somebody know how to escape the special character "^@"
> which looks like some kind of special space but is
> hard to do the escape with a RegExp.
[...]
>
> $_=~s/[^+]//g;
> $_=~s/[^@]//g;
> $_=~s/\^@//g;

http://www.visibone.com/regular-expressions/ lists '\cX' as the way to
escape control characters...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-nr2 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/iraJ6QPtAqft/S8RAserAJ99JRrl6TjoaH4I3Al5e3npZmDWuACfZrLn
+pmel0ZzZEL0Wg76C5JZ4gA=
=mAKK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3553 bytes
Desc: S/MIME Cryptographic Signature
Url : /pipermail/attachments/20031013/7b76e005/smime.bin


More information about the Gnupg-users mailing list