would like to get only the part up to the second "-" so without the alphanumerical part at the end. How can i do this?
use string.rindex('-') to get the index, then use slice syntax to slice it at that point
rsplit could help you
rsplit exists?
Обсуждают сегодня