Код: Выделить всё
www.mydomain.com/invite/abc123
Код: Выделить всё
If there is a forward slash, then take all characters after the last forward slash.
Код: Выделить всё
if s.find('/') >= 0:
return s[s.rfind('/')+1:]
Подробнее здесь: https://stackoverflow.com/questions/692 ... this-rfind
Мобильная версия