How do I split the string 'Notification id = 7427580 user-id = 1992'
to obtain the Id numbers from the string only.
For example:
var NotificationID = 7427580
var UserID = 1992
Thanks in advance!
Thanks for the fix:
temp = 'Notification id = 7427580 user-id = 1992'
for s in temp.split():
if (s.isdigit()):
id_list.append(s)
print(id_list[0])
print(id_list[1])