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

Re^2: Cleaning file

by mk. (Friar)
on Aug 22, 2006 at 14:16 UTC ( [id://568860]=note: print w/replies, xml ) Need Help??


in reply to Re: Cleaning file
in thread Cleaning file

sorry, i don't actually get what you're trying to achieve with this regexp. it only replaces one or more spaces with the expression "^[A-Z][0-9]". perhaps you meant this?!
perl -i -pe 's/.//g' filename

but i think the best way of doing this should be pileofrogs's idea.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"one who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever."

mk at rio dot pm dot org

Log In?
Username:
Password:

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

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

    No recent polls found