Remove characters from string

PHOTO EMBED

Fri Apr 01 2022 12:12:44 GMT+0000 (UTC)

Saved by @hasnat #ios #swift #remove #removecharacters #char #characters #string

var number = "73-84-4"
cardNumber1 = number.filter { $0 != "-" }
print("card 122", number)
content_copyCOPY