Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to replace certain characters in string swift

let aString = "This is my string"
let newString = aString.replacingOccurrences(of: " ", with: "+", options: .literal, range: nil)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #characters #string #swift
ADD COMMENT
Topic
Name
8+2 =