import res = "User 1 2 3 4 5 6 7 10000 100007 user.b user.x 30000 80001 user.c"res = re.sub(r'(?:\s*\b\d\b)+', '', s)print(res)
Standard input is empty
User 10000 100007 user.b user.x 30000 80001 user.c
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!