Hi all,
For example I have one string : “name:john;location:USA;”, and I need to split this.
Thanks in advance.
Hi all,
For example I have one string : “name:john;location:USA;”, and I need to split this.
Thanks in advance.
var words : String = “Tata:Yoyo”;
var split : String = words.Split(“:”[0]);
for(var s in split) print(s);
Here.