I copied mobile number from contact . I got it like "8008708600\u{e2}" . I wish to remove \u{e2} from string. String is copied with exponent character which I dont want.
Ex: "8008708600\u{e2}" so desired output is 8008708600
I used following code
let formattedString = string.replacingOccurrences(of: " \\u{e2}”, with: "")
Any help would be greatly appreciated, thanks so much!
Code:
I have used following Code:
Output:
Hope this helps.
I made a function for help:
It's work well for me.