[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-beginners
Subject:    Re: how to elimate special character "^@" in text by perl
From:       212.64.106.37
Date:       2013-11-17 11:14:08
Message-ID: 5288A500.2050608 () isolution ! nl
[Download RAW message or body]

On 2013-11-17 10:06, loody wrote:

> I try to eliminate below special character "^@" by perl in the attachment.

That is probably a representation of a zero-byte, just like ^A is a 
one-byte, etc.


> I have tried  "$.*^' regular expression for elimination in perl but fail

What do you expect "$.*^' to do? It looks bizarre to me.

I would try "s/\x{00}/./g", which is just one of the many 
representations of a substitution that replaces all zero-bytes with a dot.

-- 
Ruud



-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic