Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Compressing a text file using count of continous characters

by oha (Friar)
on Dec 14, 2007 at 17:00 UTC ( [id://657080]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/((\D)\2+)/length($1).$2/ge;
    
  2. or download this
    s/((\D)\2{1,8}|(\d)\3{0,8})/length($1).$2.$3/ge;
    
  3. or download this
    s/(\d)(.)/$2x$1/ge;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-19 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found