I have to find 1 of 3 characters in a string. How can I do that?
I tried this:
let value = "from 3,95 €"
let wanted: Character = "£", "€" OR "₹"
if let idx = value.characters.index(of: wanted) {
print("Found \(wanted)")
} else {
print("Not found")
}
Thank you!