mercredi 24 mai 2017

Find word within a string

I have the following string:

myString = "/name:John/weight:87/time:125400/"

How do I extract the words from the string?

How to stay:

myName = "John";
myWeight = 87;
myTime = 125400;

Aucun commentaire:

Enregistrer un commentaire