Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex question: How do I remove an escape code from text?

by jsprat (Curate)
on Mar 20, 2003 at 18:00 UTC ( #244667=note: print w/ replies, xml ) Need Help??


in reply to Regex question: How do I remove an escape code from text?

You opened it in vim? Position the cursor under the '^e' and type "ga" (or ":as[cii]", if that's easier to remember). In the command line you will see the ascii value of the character.


Comment on Re: Regex question: How do I remove an escape code from text?
Re: Re: Regex question: How do I remove an escape code from text?
by Declarent (Sexton) on Mar 20, 2003 at 18:40 UTC

    I opened it in vim, hit ga and guess what? It's a 0x00. Removed it via /\x00/ and now I'm 5x5.

    As usual, you Monks rock!

    D

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (16)
As of 2014-10-23 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls