Created
April 3, 2015 23:11
-
-
Save kartikmaji/c8b8a2f12d37355ac737 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| fo = open("follower.txt", "rw+") | |
| final = " " | |
| i=0 | |
| num_of_lines =len(fo.readlines()) | |
| fo.seek(0, 0) | |
| while i<num_of_lines: | |
| line = fo.readline() | |
| #print line | |
| final =final + re.sub(r'\d+:',' ',line) | |
| i+=1 | |
| print final | |
| final = re.sub(r'\"','',final) | |
| print final | |
| fo.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment