def winnumber(s):
    parts = s.split('SUCCESS Number of wins : ')
return parts[0].strip(), int(parts[1])
winnumber('TheBears      SUCCESS Number of wins : 14')
Python Regex to match a string as a pattern and return number