import reinput1 = '3787381001'pattern = re.compile('10*1')m = pattern.search(input1)if m: print(m.group())
Standard input is empty
1001
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!