Answers for "swift replace all chars in string into "" except numbers"

0

swift replace all characters except numbers

let result = string.trimmingCharacters(in: CharacterSet(charactersIn: "0123456789.").inverted)
Posted by: Guest on September-09-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language