import re line = r'defenders\t2\n'; print re.split(r'[\n\t]', line)
Standard input is empty
['defenders\\t2\\n']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!