Monday, February 18, 2019

python remove text from string after character(s) without using regex

pivot = '...'
required = text.split(pivot, 1)[0]