I want to transpose all characters A with an accent to ASCII with swift's regular expression.
let pattern = "[äÄàÀ]"
var input = "ÀàÄä"
input.replacingOccurrences(of: pattern, with: "A", options: .regularExpression)
The following code returns in Xcode 9: AAAAAA. (6 times A). I would expect 4 times A. What is wrong?