I'm an moderator of a forum and I need to prune all the bots that register on there.
As you can see below, I can list all the users by:
Username number_of_mssages register_date
Example:
- Thurman Valsin0190 0 Sat Jan 14, 2012 5:00 pm
- Rubye Tones01AD 0 Sat Jan 14, 2012 4:59 pm
I need a super simple Python little program that parses me each line of a text file, so I can get, from the string above, only the nick names.
- Thurman Valsin0190
- Rubye Tones01AD
This means that the program has to delete for each line the 0 and everything that is behind him. The text is taken from a .txt file.
I know this is not that difficult but I'm not a lot into Python.
Thanks in advance!
0will always be0? or can be any one digit number?