Compressing a text file using count of continous characters

nirvana smkmenon at gmail.com
Fri Dec 14 11:54:58 EST 2007


I need to count the number of continous character occurances(more than
1) in a file, and replace it with a compressed version, like below
XYZAAAAAAAADEFAAcdAA --> XYZ8ADEF2Acd2A

Thanks
Sumod



More information about the Python-list mailing list