I am looking for a way to replace characters in a Swift String.
String
Example: \"This is my string\"
I would like to replace \" \" with \"+\" to get \
Did you test this :
var test = "This is my string" let replaced = test.stringByReplacingOccurrencesOfString(" ", withString: "+", options: nil, range: nil)