Could someone pls tell me how i get a subString from a String? I tried everything with substring and rangeOfString methods but can't solve it... My text goes like this:
var text = "Suuuuper, {1} has sent {2} a very cool present"
My text can vary before {1} and after {2}, so I suppose I have to first get always the indexes of "{1}" and "{2}" and then get substrings.
I would like to have in the end:
var myTextBefore{1}: String = ...
var myTextAfter{2}: String = ...
Thanks in advance.