Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: replace specical char ^@ to empty char

by Anonymous Monk
on Nov 07, 2011 at 12:15 UTC ( [id://936486]=note: print w/replies, xml ) Need Help??


in reply to replace specical char ^@ to empty char

If the two-character string "^@" actually does appear in the file, rather than being a representation of a null, then you would need to escape each character in the pattern, and use a grouping to indicate that the pair of characters may repeat: s/(?:\^\@)+$//g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://936486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found