# your code goes here import re line = 'TDO Capture Data: 1111111111111111'mo = re.match('TDO Capture Data: ([01]+)', line) print(mo.group(1)[0:4])
Standard input is empty
1111
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!