yandex
loader

please wait

  • Charles Kyobe Feb-12-2019 06:11:50 AM ( 1 month ago )

    When I copy number phone from phone app I get results like this \u{e2}05xxxxxx49\u{e2}

    I need to remove this character \u{e2} from the left and right of the number to get a result like this 05xxxxxx49

    var str = number
    str = str!.replacingOccurrences(of: "\u{e2}", with: "")
    print(str!)
  • Shreya Bansal Feb-12-2019 06:13:00 AM ( 1 month ago )
    phoneNumber = phoneNumber.replaceAll("[\\D]", "")

    The above code replaces/removes all the non digit characters. Give it a try.

Please login

Similar Discussion

Recommended For You