fork download
  1. import re
  2. p = re.compile(ur'Start.*$')
  3. test_str = u"87, 72 Start I am a sentence finish"
  4. result = re.sub(p, "", test_str).strip()
  5. print result
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
87, 72