import re
a = ['текст/1/текст', 'текст/3/текст', 'текст/2/текст']
maxi = 0
s = ''
for i in a:
u = int(re.findall(r'\d', i)[0])
if maxi < u:
maxi = u
s = i
print(s)
a = ['maz/2/arini', 'ya/16/streb', 'lovel/5/as']
max([int(''.join([c for c in i if c.isdigit()])) for i in a])
import string
translation = str.maketrans(string.digits, string.digits, string.ascii_letters + string.punctuation)
max([int(i.translate(translation)) for i in a])