import re s1 = '87, 72 Start I am a sentence finish'print(re.sub(" Start.*$", '', s1))
Standard input is empty
87, 72
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!