I would like to know how to get all the value of a specific information. In this case, I want to get all the 'name' of a message and convert it in an array. Example of message:
"xxxxxxxxxx name:yyyy; xxxxxxxxxxxxxxxxxxx name:yyyyy;"
Code (I only got the first 'name'):
for i in range(0,len(message)):
start = message.find('name') + 4
end = message.find(';', start)
a=message[start:end]
split=a.split(';')
print(split)